forked from platypush/platypush
Fixed LTR559 integration after a change in the core library interface
This commit is contained in:
parent
f74ca28382
commit
2d9dff7d4c
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ class GpioSensorLtr559Plugin(GpioSensorPlugin):
|
|||
"""
|
||||
|
||||
import ltr559
|
||||
ltr559.set_proximity_active()
|
||||
ltr = ltr559.LTR559()
|
||||
ltr.update_sensor()
|
||||
|
||||
return {
|
||||
'light': ltr559.get_lux(),
|
||||
|
|
Loading…
Reference in a new issue