def turn_on(self):
    'Turn the media player on.'
    if self._mac:
        self._wol.send_magic_packet(self._mac)
    else:
        self.send_key('KEY_POWERON')
Turn the media player on.
def turn_on(self):
    
    if self._mac:
        self._wol.send_magic_packet(self._mac)
    else:
        self.send_key('KEY_POWERON')