wol fix
This commit is contained in:
parent
fcdaea2896
commit
702791ea99
@ -24,6 +24,14 @@ class WOL(object):
|
||||
}
|
||||
}
|
||||
return config
|
||||
|
||||
##-----------------------------------------------------------------------------------##
|
||||
def command(self, data):
|
||||
##-----------------------------------------------------------------------------------##
|
||||
for device in data:
|
||||
if device in self.devices:
|
||||
self.wakeDevice(self.devices[device]['mac'])
|
||||
|
||||
##-----------------------------------------------------------------------------------##
|
||||
def wakeDevice(self, device):
|
||||
##-----------------------------------------------------------------------------------##
|
||||
|
Reference in New Issue
Block a user