'Turn off media player.'

def turn_off(self):

    from websockets.exceptions import ConnectionClosed
    self._state = STATE_OFF
    try:
        self._client.power_off()
    except (OSError, ConnectionClosed, TypeError, asyncio.TimeoutError):
        pass
