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
1 changed files with 2 additions and 1 deletions

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(),