@asyncio.coroutine
def async_turn_off(self):
    'Execute turn_off_action to turn off media player.'
    if (self._turn_off_action == 'quit'):
        (yield from self._server.Application.Quit())
    elif (self._turn_off_action == 'hibernate'):
        (yield from self._server.System.Hibernate())
    elif (self._turn_off_action == 'suspend'):
        (yield from self._server.System.Suspend())
    elif (self._turn_off_action == 'reboot'):
        (yield from self._server.System.Reboot())
    elif (self._turn_off_action == 'shutdown'):
        (yield from self._server.System.Shutdown())
    else:
        _LOGGER.warning('turn_off requested but turn_off_action is none')
Execute turn_off_action to turn off media player.
@asyncio.coroutine
def async_turn_off(self):
    
    if (self._turn_off_action == 'quit'):
        (yield from self._server.Application.Quit())
    elif (self._turn_off_action == 'hibernate'):
        (yield from self._server.System.Hibernate())
    elif (self._turn_off_action == 'suspend'):
        (yield from self._server.System.Suspend())
    elif (self._turn_off_action == 'reboot'):
        (yield from self._server.System.Reboot())
    elif (self._turn_off_action == 'shutdown'):
        (yield from self._server.System.Shutdown())
    else:
        _LOGGER.warning('turn_off requested but turn_off_action is none')