From e9a4ff782e69bea4fe212f12ada48b02f4e64496 Mon Sep 17 00:00:00 2001 From: petretiandrea Date: Mon, 30 Jan 2023 22:28:21 +0000 Subject: [PATCH] fix brightness value --- custom_components/tapo/light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/tapo/light.py b/custom_components/tapo/light.py index 64f0595..9e516e5 100755 --- a/custom_components/tapo/light.py +++ b/custom_components/tapo/light.py @@ -180,7 +180,7 @@ async def _change_color_temp(self, color_temp): await self._execute_with_fallback( lambda: self._tapo_coordinator.api.set_color_temperature( - kelvin_color_temp, self.brightness + kelvin_color_temp, self.last_state.brightness ) ) @@ -189,6 +189,6 @@ async def _change_color(self, hs_color): await self._execute_with_fallback( lambda: self._tapo_coordinator.api.set_hue_saturation( - hs_color[0], hs_color[1], self.brightness + hs_color[0], hs_color[1], self.last_state.brightness ) )