Add constants class-struct

This commit is contained in:
Bo Maryniuk 2015-10-12 23:48:04 +02:00 committed by C. R. Oldham
parent 7a8d72de3f
commit bfbe4160b2

View file

@ -14,6 +14,14 @@ GRAINS_CACHE = {}
log = logging.getLogger(__file__)
class Const:
'''
Constants for the lamp operations.
'''
LAMP_ON = {"on": True, "transitiontime": 0}
LAMP_OFF = {"on": False, "transitiontime": 0}
def __virtual__():
'''
Validate the module.