Example #1
0
 def lights():
     if request.method in ('PUT', 'POST'):
         helpers.toggle()
     else:
         return light.status() + "\n"
Example #2
0
 def lightstate():
     return light.status(),
Example #3
0
 def lightStatus():
     return str(light.status())