def __init__(self, on, where): ''' Constructor ''' onValue = 1 if on else 0 print str(on) + " " + str(onValue) BusCommand.__init__(self, LightBusCommand.whoValue, onValue, "#" + str(where) + "")
def __init__(self, val, where): ''' Constructor ''' BusCommand.__init__(self, AutomationBusCommand.whoValue, val, "#" + str(where) + "")