def __init__(self, name, callback_function): HomeAutomationThread.__init__(self, name, callback_function) self.id = 1 self.sensor = SENSOR_DHT_SENSOR_TYPE self.pin = SENSOR_DHT_SENSOR_PIN self.sensors = [self] self.humidity = 0.0 self.temperature = 0.0 global CurrentInstance CurrentInstance = self
def __init__(self, name, callback_function, rgbmatrix): HomeAutomationThread.__init__(self, name, callback_function) self.rgbmatrix = rgbmatrix