|
@@ -594,7 +594,7 @@ class update_path(Load):
|
|
|
#response = yield tornado.gen.Task(self.switch, id, value)
|
|
|
#yield self.switch(id, value)
|
|
|
#Demeter.service('device').switch(id, value)
|
|
|
- response = Shell.popen(Demeter.path + 'switch.py ' + id + ' ' + value, timeout=3)
|
|
|
+ response = Shell.popen(Demeter.path + 'switch.py ' + id + ' ' + value, timeout=10)
|
|
|
response = response.replace("\n", "")
|
|
|
if response == 'ok':
|
|
|
self.out('yes', {'id':id})
|