mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +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)
|
||||
if bright:
|
||||
self._brightness = 255 * (int(bright) / 100)
|
||||
self._brightness = round(255 * (int(bright) / 100))
|
||||
|
||||
temp_in_k = self._properties.get('ct', None)
|
||||
if temp_in_k:
|
||||
|
Loading…
x
Reference in New Issue
Block a user