fix wol
This commit is contained in:
parent
05ff2acaff
commit
d954f0c376
@ -31,12 +31,13 @@ class WOL(object):
|
||||
for device in data:
|
||||
if device in self.devices:
|
||||
self.wakeDevice(self.devices[device])
|
||||
print(device)
|
||||
print(self.devices[device])
|
||||
|
||||
##-----------------------------------------------------------------------------------##
|
||||
def wakeDevice(self, device):
|
||||
##-----------------------------------------------------------------------------------##
|
||||
if(device in self.devices):
|
||||
print("Waking up Device: " + device + " mac: " + self.devices[device])
|
||||
wol.send_magic_packet(self.devices[device])
|
||||
print("Waking up Device: " + device + " mac: " + self.devices[device])
|
||||
wol.send_magic_packet(self.devices[device])
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user