Fix yeelight light brightness integer (#15290)

This commit is contained in:
cdce8p 2018-07-04 04:50:13 +02:00 committed by Aaron Bach
parent 2525fc52b3
commit 42775142f8

View File

@ -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: