Skip to content

Commit

Permalink
bugfix: cosmetic change from last PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Wichmann committed Apr 3, 2021
1 parent e3373f8 commit fb0c660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home-assistant-plugin/custom_components/xknx/expose.py
Expand Up @@ -137,7 +137,7 @@ async def _async_set_knx_value(self, value: StateType) -> None:
if self.type == "binary":
if value in (1, STATE_ON, "True"):
value = True
elif value == STATE_OFF or value == 0 or value == "False":
elif value in (0, STATE_OFF, "False"):
value = False

await self.device.set(value)
Expand Down

0 comments on commit fb0c660

Please sign in to comment.