From 3d7492de29c4befb70fc68759fe211b32fdc5131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?So=CC=88ren=20Mu=CC=88ller?= Date: Tue, 4 Jun 2019 20:30:28 +0200 Subject: [PATCH] Unnecessary rounding and typo removed --- homeassistant/components/avea/light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/avea/light.py b/homeassistant/components/avea/light.py index 62b5582b80a..0c74d81df57 100644 --- a/homeassistant/components/avea/light.py +++ b/homeassistant/components/avea/light.py @@ -25,7 +25,7 @@ class AveaLight(Light): """Representation of an Avea.""" def __init__(self, light): - """Initialize an AveaLigh.""" + """Initialize an AveaLight.""" self._light = light self._name = light.get_name() if int(light.get_brightness()) == 0: @@ -72,7 +72,7 @@ class AveaLight(Light): self._light.set_brightness(bright) if ATTR_HS_COLOR in kwargs: 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))) + self._light.set_rgb(rgb[0],rgb[1],rgb[2]) def turn_off(self, **kwargs): """Instruct the light to turn off."""