From 77c1b36a12f8ff97b60fac102636513dcd14aaf5 Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Wed, 30 Aug 2023 21:56:51 +1000 Subject: [PATCH] Fix Thing builder example (#129) --- lib/openhab/dsl/things/builder.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/openhab/dsl/things/builder.rb b/lib/openhab/dsl/things/builder.rb index 5e7818975b..410f237820 100644 --- a/lib/openhab/dsl/things/builder.rb +++ b/lib/openhab/dsl/things/builder.rb @@ -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