mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
This commit is contained in:
committed by
Paulus Schoutsen
parent
4455a287fc
commit
882c4b73ae
@@ -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:
|
||||||
|
Reference in New Issue
Block a user