This commit is contained in:
Kai Wansart 2018-02-02 20:48:32 +01:00
parent 67a63540d5
commit 842f703a05

View File

@ -30,11 +30,12 @@ class WOL(object):
##-----------------------------------------------------------------------------------##
for device in data:
if device in self.devices:
self.wakeDevice(self.devices[device])
self.wakeDevice(device)
##-----------------------------------------------------------------------------------##
def wakeDevice(self, device):
##-----------------------------------------------------------------------------------##
wol.send_magic_packet(self.devices[device])
mac = self.devices[device]
wol.send_magic_packet(mac)