From 2d9dff7d4c8d36781258118bec92e6d07e24ec76 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 28 Nov 2021 11:25:35 +0100 Subject: [PATCH] Fixed LTR559 integration after a change in the core library interface --- platypush/plugins/gpio/sensor/ltr559/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/plugins/gpio/sensor/ltr559/__init__.py b/platypush/plugins/gpio/sensor/ltr559/__init__.py index eb2e34680..68372d7c5 100644 --- a/platypush/plugins/gpio/sensor/ltr559/__init__.py +++ b/platypush/plugins/gpio/sensor/ltr559/__init__.py @@ -31,7 +31,8 @@ class GpioSensorLtr559Plugin(GpioSensorPlugin): """ import ltr559 - ltr559.set_proximity_active() + ltr = ltr559.LTR559() + ltr.update_sensor() return { 'light': ltr559.get_lux(),