From 5632e334268a0a5a63c803b62136b84411c300e5 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 6 Sep 2022 20:00:51 +0200 Subject: [PATCH] Improve type hints in lw12wifi light (#77656) --- homeassistant/components/lw12wifi/light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/lw12wifi/light.py b/homeassistant/components/lw12wifi/light.py index 7814475b41f..9f520a79ae1 100644 --- a/homeassistant/components/lw12wifi/light.py +++ b/homeassistant/components/lw12wifi/light.py @@ -116,7 +116,7 @@ class LW12WiFi(LightEntity): """Return True if unable to access real state of the entity.""" return True - def turn_on(self, **kwargs): + def turn_on(self, **kwargs: Any) -> None: """Instruct the light to turn on.""" self._light.light_on() if ATTR_HS_COLOR in kwargs: @@ -124,7 +124,7 @@ class LW12WiFi(LightEntity): self._light.set_color(*self._rgb_color) self._effect = None if ATTR_BRIGHTNESS in kwargs: - self._brightness = kwargs.get(ATTR_BRIGHTNESS) + self._brightness = kwargs[ATTR_BRIGHTNESS] brightness = int(self._brightness / 255 * 100) self._light.set_light_option(lw12.LW12_LIGHT.BRIGHTNESS, brightness) if ATTR_EFFECT in kwargs: