From d954f0c3763b7846b5e355244ef18570cf32dbbc Mon Sep 17 00:00:00 2001 From: Kai Wansart Date: Fri, 2 Feb 2018 20:34:00 +0100 Subject: [PATCH] fix wol --- app/devices/wol.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/devices/wol.py b/app/devices/wol.py index ab13493..f5c4260 100644 --- a/app/devices/wol.py +++ b/app/devices/wol.py @@ -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])