mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +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)
|
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:
|
||||||
|
Reference in New Issue
Block a user