'Return the state of the device.'

@property
def state(self):

    if self._coordinator:
        return self._coordinator.state
    if (self._status in ('PAUSED_PLAYBACK', 'STOPPED')):
        return STATE_PAUSED
    if (self._status in ('PLAYING', 'TRANSITIONING')):
        return STATE_PLAYING
    if (self._status == 'OFF'):
        return STATE_OFF
    return STATE_IDLE
