Skip to content

Commit

Permalink
Merge pull request #359 from petretiandrea/343-l920-color-change-issues
Browse files Browse the repository at this point in the history
fix brightness value
  • Loading branch information
petretiandrea authored Jan 30, 2023
2 parents 9c9e3d4 + e9a4ff7 commit 29c9b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/tapo/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)

Expand All @@ -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
)
)

0 comments on commit 29c9b0e

Please sign in to comment.