Fixed LTR559 integration after a change in the core library interface

This commit is contained in:
Fabio Manganiello 2021-11-28 11:25:35 +01:00
parent f74ca28382
commit 2d9dff7d4c

View file

@ -31,7 +31,8 @@ class GpioSensorLtr559Plugin(GpioSensorPlugin):
"""
import ltr559
ltr559.set_proximity_active()
ltr = ltr559.LTR559()
ltr.update_sensor()
return {
'light': ltr559.get_lux(),