Skip to content

Commit

Permalink
Merge cce7f91 into 8f1d448
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-w committed Apr 3, 2021
2 parents 8f1d448 + cce7f91 commit 42f520f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home-assistant-plugin/custom_components/xknx/expose.py
Expand Up @@ -135,9 +135,9 @@ async def _async_set_knx_value(self, value: StateType) -> None:
value = self.expose_default

if self.type == "binary":
if value == STATE_ON:
if value in (1, STATE_ON, "True"):
value = True
elif value == STATE_OFF:
elif value == STATE_OFF or value == 0 or value == "False":
value = False

await self.device.set(value)
Expand Down

0 comments on commit 42f520f

Please sign in to comment.