@property
    def state(self):
        if not self._client.connected:
            return STATE_OFF
        return {
            'idle': STATE_IDLE,
            'playing': STATE_PLAYING,
            'unkown': STATE_UNKNOWN,
        }.get(self._client.stream.status, STATE_UNKNOWN)
Return the state of the player.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/snapcast.py/SnapcastDevice.state