From 702791ea99f16d6ae35a5e43164e7899d9f35cf8 Mon Sep 17 00:00:00 2001 From: Kai Wansart Date: Fri, 2 Feb 2018 20:11:26 +0100 Subject: [PATCH] wol fix --- app/devices/wol.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/devices/wol.py b/app/devices/wol.py index d611b7f..d0914e8 100644 --- a/app/devices/wol.py +++ b/app/devices/wol.py @@ -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): ##-----------------------------------------------------------------------------------##