Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
peribeir committed Sep 23, 2024
1 parent 6b6b1ac commit 3b29029
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions homepilot/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ async def update_state(self, state, api):
self.is_on = state["statusesMap"]["Position"] != 0
self.brightness = state["statusesMap"]["Position"]
if self.has_rgb:
self.r_value: int = int(["statusesMap"]["rgb"][2:4], 16)
self.g_value: int = int(["statusesMap"]["rgb"][4:6], 16)
self.b_value: int = int(["statusesMap"]["rgb"][6:8], 16)
self.r_value: int = int(state["statusesMap"]["rgb"][2:4], 16)
self.g_value: int = int(state["statusesMap"]["rgb"][4:6], 16)
self.b_value: int = int(state["statusesMap"]["rgb"][6:8], 16)
self.color_temp_value = state["statusesMap"]["colortemperature"] if self.has_color_temp else 0
self.color_mode_value = state["statusesMap"]["colormode"] if self.has_color_mode else 0

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pyrademacher",
version="0.13.6",
version="0.13.7",
author="Pedro Ribeiro",
author_email="[email protected]",
description="Control devices connected to your Rademacher Homepilot "
Expand Down

0 comments on commit 3b29029

Please sign in to comment.