mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix yeelight light brightness integer (#15290)
This commit is contained in:
parent
2525fc52b3
commit
42775142f8
@ -310,7 +310,7 @@ class YeelightLight(Light):
|
|||||||
|
|
||||||
bright = self._properties.get('bright', None)
|
bright = self._properties.get('bright', None)
|
||||||
if bright:
|
if bright:
|
||||||
self._brightness = 255 * (int(bright) / 100)
|
self._brightness = round(255 * (int(bright) / 100))
|
||||||
|
|
||||||
temp_in_k = self._properties.get('ct', None)
|
temp_in_k = self._properties.get('ct', None)
|
||||||
if temp_in_k:
|
if temp_in_k:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user