This commit is contained in:
parent
eb7db1f763
commit
b59d69f313
1 changed files with 1 additions and 1 deletions
|
@ -713,7 +713,7 @@ class XiaomiPhilipsEyecareLampAmbientLight(XiaomiPhilipsAbstractLight):
|
||||||
_LOGGER.debug("Got new state: %s", state)
|
_LOGGER.debug("Got new state: %s", state)
|
||||||
|
|
||||||
self._available = True
|
self._available = True
|
||||||
self._state = state.eyecare
|
self._state = state.ambient
|
||||||
self._brightness = ceil((255 / 100.0) * state.ambient_brightness)
|
self._brightness = ceil((255 / 100.0) * state.ambient_brightness)
|
||||||
|
|
||||||
except DeviceException as ex:
|
except DeviceException as ex:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue