Skip to content

Commit

Permalink
Fix Thing builder example (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimtng authored Aug 30, 2023
1 parent 3cfa760 commit 77c1b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/openhab/dsl/things/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ module Things
# things.build do
# thing("mqtt:topic:my-switch", "My Switch", bridge: "mqtt:bridge:mosquitto", config: thing_config) do
# channel("switch1", "switch", config: {
# stateTopic: "stat/my-switch/switch1/state", commandTopic="cmnd/my-switch/switch1/command"
# stateTopic: "stat/my-switch/switch1/state", commandTopic: "cmnd/my-switch/switch1/command"
# })
# channel("button1", "string", config: {
# stateTopic: "stat/my-switch/button1/state", commandTopic="cmnd/my-switch/button1/command"
# stateTopic: "stat/my-switch/button1/state", commandTopic: "cmnd/my-switch/button1/command"
# })
# end
# end
Expand Down

0 comments on commit 77c1b36

Please sign in to comment.