This commit is contained in:
Kai Wansart 2018-02-02 20:11:26 +01:00
parent fcdaea2896
commit 702791ea99

View File

@ -24,6 +24,14 @@ class WOL(object):
} }
} }
return config 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): def wakeDevice(self, device):
##-----------------------------------------------------------------------------------## ##-----------------------------------------------------------------------------------##