Skip to content

Commit

Permalink
fix: logic error in resuming stale brightness in rest plus
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlb committed Dec 31, 2022
1 parent cc067bb commit 519e9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ha_hatch/rest_light_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def turn_on(self, **kwargs):
# If 100 is sent to Abode, response is 99 causing an error
brightness = round(kwargs[ATTR_BRIGHTNESS] * 100 / 255.0)
else:
brightness = self._attr_brightness
brightness = round(self._attr_brightness * 100 / 255.0)
if ATTR_RGB_COLOR in kwargs:
rgb = kwargs[ATTR_RGB_COLOR]
else:
Expand Down

0 comments on commit 519e9a6

Please sign in to comment.