|
@@ -65,7 +65,7 @@ class mul_path(Load):
|
|
|
if info['devices']:
|
|
|
devices = tuple(eval(info['devices']))
|
|
|
for device in devices:
|
|
|
- Demeter.service('device').switch(device, value, id)
|
|
|
+ Demeter.service('device').switch(device, switch=value, mul=id)
|
|
|
self.out('yes', {'id':id})
|
|
|
else:
|
|
|
self.out('no')
|
|
@@ -659,7 +659,7 @@ class update_path(Load):
|
|
|
id = self.input('id')
|
|
|
value = self.input('value')
|
|
|
if id:
|
|
|
- Demeter.service('device').switch(id, value)
|
|
|
+ Demeter.service('device').switch(id, switch=value)
|
|
|
|
|
|
self.out('yes', {'id':id})
|
|
|
"""
|
|
@@ -682,7 +682,7 @@ class update_path(Load):
|
|
|
|
|
|
@tornado.gen.coroutine
|
|
|
def switch(self, id, value):
|
|
|
- Demeter.service('device').switch(id, value)
|
|
|
+ Demeter.service('device').switch(id, switch=value)
|
|
|
|
|
|
class get_path(Load):
|
|
|
@Web.auth
|