From ad8514cd1131a75fc6dec289b4ca2a3c03722532 Mon Sep 17 00:00:00 2001 From: mschlenstedt Date: Wed, 18 Sep 2024 22:59:00 +0200 Subject: [PATCH] TSL2561 Bugfix (#402) --- mqtt_io/modules/sensor/tsl2561.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mqtt_io/modules/sensor/tsl2561.py b/mqtt_io/modules/sensor/tsl2561.py index dd13c387..0c62b553 100644 --- a/mqtt_io/modules/sensor/tsl2561.py +++ b/mqtt_io/modules/sensor/tsl2561.py @@ -12,7 +12,7 @@ "type": 'integer', "required": False, "empty": False, - "default": '0x48'}, + "default": '0x49'}, "integration_time": { "required": False, "empty": False, @@ -30,7 +30,7 @@ class Sensor(GenericSensor): """ - Implementation of Sensor class for the Adafruit_ADS1x15. + Implementation of Sensor class for the Adafruit_TSL2561 """ SENSOR_SCHEMA: CerberusSchemaType = { @@ -53,7 +53,7 @@ def setup_module(self) -> None: self.i2c = busio.I2C(board.SCL, board.SDA) # Convert sensor address from hex to dec - self.address = int(0x48) + self.address = int(0x49) if 'chip_addr' in self.config: self.address = int(self.config['chip_addr'])