From 61f9768bee671bf1898a12bb05a50656f2654b9f Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 8 Mar 2019 19:16:56 -0800 Subject: [PATCH] fix(poll-state): Set default value for updateIntervalUnits --- nodes/poll-state/poll-state.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nodes/poll-state/poll-state.html b/nodes/poll-state/poll-state.html index 521a6ab42c..d71999babd 100644 --- a/nodes/poll-state/poll-state.html +++ b/nodes/poll-state/poll-state.html @@ -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"); });