'Refresh the current media state.'

def refresh_state(self):

    state = self._client.media_state
    if (state == 'PLAY'):
        return STATE_PLAYING
    elif (state == 'PAUSE'):
        return STATE_PAUSED
    return (STATE_ON if self._client.is_on else STATE_OFF)
