mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Fix yeelight light brightness integer (#15290)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user