1
0
mirror of https://github.com/elisspace/core.git synced 2026-09-01 00:44:04 +00:00

Fix ambient light state of the Philips Eyecare Lamp (Closes: #16269) (#17259)

This commit is contained in:
Sebastian Muszynski
2018-10-09 10:11:14 +02:00
committed by Paulus Schoutsen
parent 4455a287fc
commit 882c4b73ae

View File

@@ -713,7 +713,7 @@ class XiaomiPhilipsEyecareLampAmbientLight(XiaomiPhilipsAbstractLight):
_LOGGER.debug("Got new state: %s", state)
self._available = True
self._state = state.eyecare
self._state = state.ambient
self._brightness = ceil((255 / 100.0) * state.ambient_brightness)
except DeviceException as ex: