]> git.basschouten.com Git - openhab-addons.git/commitdiff
[deconz] Set "ontime" option only if thing has got an ONTIME channel (#10829)
authorMartin Herbst <develop@mherbst.de>
Mon, 14 Jun 2021 14:01:30 +0000 (16:01 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Jun 2021 14:01:30 +0000 (16:01 +0200)
* Set "ontime" option only if thing has got an ONTIME channel

Fixes #10774

Signed-off-by: Martin Herbst <develop@mherbst.de>
bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/LightThingHandler.java

index a25c62af95641633a7c239c1eeb3f327fccadfed..25a267bcba7b066b043c1c44c343ff3169a12803 100644 (file)
@@ -96,7 +96,8 @@ public class LightThingHandler extends DeconzBaseThingHandler {
      */
     private LightState lightStateCache = new LightState();
     private LightState lastCommand = new LightState();
-    private int onTime = 0; // in 0.1s
+    @Nullable
+    private Integer onTime = null; // in 0.1s
     private String colorMode = "";
 
     // set defaults, we can override them later if we receive better values