Skip to content

Commit

Permalink
syntax error in example ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
farmio committed Mar 15, 2021
1 parent 112f590 commit 5bd6b98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ An instantiated device is automatically added to `xknx.devices`.
>>> light_s = Light(
... xknx,
... name="light with state address",
... group_address_switch="0/2/2"
... group_address_switch_state="0/3/3"
... group_address_switch="0/2/2",
... group_address_switch_state="0/3/3",
... )
>>> light_s.switch.group_address # this is used to send payloads to the bus
GroupAddress("0/2/2")
Expand All @@ -44,8 +44,8 @@ GroupAddress("0/3/3")
>>> light_p = Light(
... xknx,
... name="light with state and passive addresses",
... group_address_switch=["1/2/2", "4/2/10", "4/2/20"]
... group_address_switch_state=["1/3/3", "4/3/10", "4/3/20"]
... group_address_switch=["1/2/2", "4/2/10", "4/2/20"],
... group_address_switch_state=["1/3/3", "4/3/10", "4/3/20"],
... )
>>> light_p.switch.group_address # this is used to send payloads to the bus
GroupAddress("1/2/2")
Expand Down

0 comments on commit 5bd6b98

Please sign in to comment.