Skip to content

Commit

Permalink
fix(poll-state): Set default value for updateIntervalUnits
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Mar 9, 2019
1 parent 5805197 commit 61f9768
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nodes/poll-state/poll-state.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@
$("#node-input-halt_if_compare").val("is");
}

if (this.updateIntervalUnits === undefined) {
$("#node-input-updateIntervalUnits").val("seconds");
}

$.getScript("/homeassistant/static/haltif.js", function() {
setupHaltIf("#node-input-halt_if", "#node-input-halt_if_compare");
});
Expand Down

0 comments on commit 61f9768

Please sign in to comment.