Skip to content

Commit

Permalink
[deconz] Set "ontime" option only if thing has got an ONTIME channel (o…
Browse files Browse the repository at this point in the history
…penhab#10829)

* Set "ontime" option only if thing has got an ONTIME channel

Fixes openhab#10774

Signed-off-by: Martin Herbst <[email protected]>
Signed-off-by: Luca Calcaterra <[email protected]>
  • Loading branch information
MHerbst authored and lucacalcaterra committed Jul 26, 2021
1 parent 69e1357 commit c1697ba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1697ba

Please sign in to comment.