Skip to content

Commit

Permalink
Update yeelight.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sduniii committed Nov 23, 2017
1 parent 3bed026 commit 2d287c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miio/yeelight.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def brightness(self) -> int:
def rgb(self) -> Optional[Tuple[int, int, int]]:
"""Return color in RGB if RGB mode is active."""
if self.color_mode == YeelightMode.RGB:
rgb = self.data["rgb"]
rgb = int(self.data["rgb"])
blue = rgb & 0xff
green = (rgb >> 8) & 0xff
red = (rgb >> 16) & 0xff
Expand Down

0 comments on commit 2d287c8

Please sign in to comment.