mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Removed debug
This commit is contained in:
@@ -70,7 +70,6 @@ class AveaLight(Light):
|
||||
bright_percent = round((kwargs.get(ATTR_BRIGHTNESS, 255)/255)*100)
|
||||
self._light.set_brightness(round(4095 * (bright_percent / 100)));
|
||||
if ATTR_HS_COLOR in kwargs:
|
||||
_LOGGER.error("ATTR_HS_COLOR!")
|
||||
rgb = color_util.color_hs_to_RGB(*kwargs[ATTR_HS_COLOR])
|
||||
self._light.set_rgb(round(255 * (rgb[0] / 100)), round(255 * (rgb[1] / 100)), round(255 * (rgb[2] / 100)));
|
||||
|
||||
@@ -89,4 +88,4 @@ class AveaLight(Light):
|
||||
else:
|
||||
self._state = True
|
||||
bright_percent = round((self._light.get_brightness()/4095)*100)
|
||||
self._brightness = round(255 * (bright_percent / 100))
|
||||
self._brightness = round(255 * (bright_percent / 100))
|
||||
|
Reference in New Issue
Block a user