progress
This commit is contained in:
@ -7,9 +7,23 @@ class WOL(object):
|
||||
def __init__(self, devices):
|
||||
##-----------------------------------------------------------------------------------##
|
||||
count = 0
|
||||
self.devices= {}
|
||||
for device in devices:
|
||||
self.devices[device] = devices[device]['mac']
|
||||
|
||||
##-----------------------------------------------------------------------------------##
|
||||
def config(self):
|
||||
##-----------------------------------------------------------------------------------##
|
||||
config = {
|
||||
"device" : {
|
||||
"name" : "",
|
||||
"mac" : ""
|
||||
},
|
||||
"wake" : {
|
||||
"device" : "name",
|
||||
"state" : "button"
|
||||
}
|
||||
}
|
||||
return config
|
||||
##-----------------------------------------------------------------------------------##
|
||||
def wakeDevice(self, device):
|
||||
##-----------------------------------------------------------------------------------##
|
||||
|
Reference in New Issue
Block a user