From ae9a3dcd7ad4f0e03b53c156381a1146fbf33480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Thu, 7 Mar 2019 13:05:34 +0100 Subject: [PATCH] Better way to provide hass to popups, fix thomasloven/lovelace-popup-card#14 --- card-tools.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/card-tools.js b/card-tools.js index c0a4111..e79e5cb 100644 --- a/card-tools.js +++ b/card-tools.js @@ -369,14 +369,13 @@ class { moreInfo._page = "none"; moreInfo.shadowRoot.appendChild(popup); moreInfo.large = large; + document.querySelector("home-assistant").provideHass(message); setTimeout(() => { let interval = setInterval(() => { if (moreInfo.getAttribute('aria-hidden')) { popup.parentNode.removeChild(popup); clearInterval(interval); - } else { - message.hass = this.hass; } }, 100) }, 1000);