]> git.basschouten.com Git - openhab-addons.git/commitdiff
DOCS: Add missing bracket (#12722)
authorDaniel Lienert <daniel@lienert.cc>
Thu, 12 May 2022 05:40:48 +0000 (07:40 +0200)
committerGitHub <noreply@github.com>
Thu, 12 May 2022 05:40:48 +0000 (07:40 +0200)
bundles/org.openhab.automation.jsscripting/README.md

index 4055a4c214878e624e8110220f2db754b95ddf16..003858ce00eeccf1086399f3a7ca1f7fd29c2ccd 100644 (file)
@@ -611,7 +611,7 @@ Additionally all the above triggers have the following functions:
 //Basic rule, when the BedroomLight1 is changed, run a custom function
 rules.when().item('BedroomLight1').changed().then(e => {
     console.log("BedroomLight1 state", e.newState)
-}.build();
+}).build();
 
 //turn on the kitchen light at SUNSET
 rules.when().timeOfDay("SUNSET").then().sendOn().toItem("KitchenLight").build("Sunset Rule","turn on the kitchen light