Commit eb0b9031 authored by nextime's avatar nextime

Wow, how many typos in few lines of changes...

parent a3378560
...@@ -1337,7 +1337,7 @@ class domotikaService(service.Service): ...@@ -1337,7 +1337,7 @@ class domotikaService(service.Service):
@defer.inlineCallbacks @defer.inlineCallbacks
def manageStatusAction(self, status, res): def manageStatusAction(self, status, res):
changed=False changed=False
if status or (type(status).__name__=='str' and status=''): if status or (type(status).__name__=='str' and status==''):
# detect if changed # detect if changed
oldstatus=yield dmdb.getStatusRealtime(res.status_name) oldstatus=yield dmdb.getStatusRealtime(res.status_name)
# NOTE: we have a changed status only if oldstatus exists # NOTE: we have a changed status only if oldstatus exists
......
...@@ -79,7 +79,7 @@ def statusParser(trigger, sun, restype='string'): ...@@ -79,7 +79,7 @@ def statusParser(trigger, sun, restype='string'):
return int(qr) return int(qr)
except: except:
return 0 return 0
else else:
if qr in ['','false','0',0,'n','no',False,None]: if qr in ['','false','0',0,'n','no',False,None]:
return False return False
return True return True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment