studioimaginaire / phue

A Python library for the Philips Hue system
Other
1.52k stars 267 forks source link

Update phue.py fix KeyError: 'lastupdated' #102

Closed bennert closed 7 years ago

bennert commented 7 years ago

Reproduction scenario: bridgeDestination.set_sensor_state(5, 'presence', bridgeSource.get_sensor(6, 'state')['presence'])

Traceback: File "hueMotion.py", line 27, in bridgeDestination.set_sensor_state(5, 'presence', bridgeSource.get_sensor(6, 'state')['presence']) File "build/bdist.linux-armv7l/egg/phue.py", line 991, in set_sensor_state File "build/bdist.linux-armv7l/egg/phue.py", line 1015, in set_sensor_content KeyError: 'lastupdated'

natcl commented 7 years ago

Thanks !