fix wol
This commit is contained in:
parent
67a63540d5
commit
842f703a05
@ -30,11 +30,12 @@ class WOL(object):
|
|||||||
##-----------------------------------------------------------------------------------##
|
##-----------------------------------------------------------------------------------##
|
||||||
for device in data:
|
for device in data:
|
||||||
if device in self.devices:
|
if device in self.devices:
|
||||||
self.wakeDevice(self.devices[device])
|
self.wakeDevice(device)
|
||||||
|
|
||||||
##-----------------------------------------------------------------------------------##
|
##-----------------------------------------------------------------------------------##
|
||||||
def wakeDevice(self, device):
|
def wakeDevice(self, device):
|
||||||
##-----------------------------------------------------------------------------------##
|
##-----------------------------------------------------------------------------------##
|
||||||
wol.send_magic_packet(self.devices[device])
|
mac = self.devices[device]
|
||||||
|
wol.send_magic_packet(mac)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user