'Turn the device on.'

def turn_on(self):

    if self._broadcast_address:
        self._wol.send_magic_packet(self._mac_address, ip_address=self._broadcast_address)
    else:
        self._wol.send_magic_packet(self._mac_address)
