From 4f9f6dd8edff8df85317ca1e1679c55546a8e712 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 18 Jun 2017 19:39:49 -0700 Subject: [PATCH] Polymer 2 fixes --- panels/automation/ha-panel-automation.html | 2 +- panels/hassio/dashboard/hassio-hass-info.html | 33 ++++++++++--------- panels/hassio/dashboard/hassio-host-info.html | 32 +++++++++--------- .../dashboard/hassio-supervisor-info.html | 32 +++++++++--------- 4 files changed, 50 insertions(+), 49 deletions(-) diff --git a/panels/automation/ha-panel-automation.html b/panels/automation/ha-panel-automation.html index e5a097e6f0..e565ef2b9c 100644 --- a/panels/automation/ha-panel-automation.html +++ b/panels/automation/ha-panel-automation.html @@ -103,7 +103,7 @@ Polymer({ }, computeAutomation: function (automations, automationId, creatingNew) { - if (creatingNew) { + if (creatingNew || !automations) { return null; } for (var i = 0; i < automations.length; i++) { diff --git a/panels/hassio/dashboard/hassio-hass-info.html b/panels/hassio/dashboard/hassio-hass-info.html index c6dcb762c2..af18bf7c22 100644 --- a/panels/hassio/dashboard/hassio-hass-info.html +++ b/panels/hassio/dashboard/hassio-hass-info.html @@ -5,23 +5,24 @@ -