diff --git a/app/devices/wol.py b/app/devices/wol.py index 2e4ea5f..3969e32 100644 --- a/app/devices/wol.py +++ b/app/devices/wol.py @@ -30,11 +30,12 @@ class WOL(object): ##-----------------------------------------------------------------------------------## for device in data: if device in self.devices: - self.wakeDevice(self.devices[device]) + self.wakeDevice(device) ##-----------------------------------------------------------------------------------## def wakeDevice(self, device): ##-----------------------------------------------------------------------------------## - wol.send_magic_packet(self.devices[device]) + mac = self.devices[device] + wol.send_magic_packet(mac)