From 5625d105bf511afa3781d3094d5d81ebe4ae4090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Sat, 10 Jul 2021 22:16:16 +0200 Subject: [PATCH] no message --- dist/plex-meets-homeassistant.js | 7 ++++++- src/editor.ts | 10 ++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 3611f0c..d79e537 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19588,7 +19588,12 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { } if (lodash.isArray(this.config.entity)) { lodash.forEach(this.config.entity, entity => { - if (lodash.isString(entity)) ; + if (lodash.isString(entity)) { + const entitiesDropdown = createEntitiesDropdown(entity, this.valueUpdated); + if (entitiesDropdown) { + this.plexValidSection.appendChild(entitiesDropdown); + } + } }); } if (!lodash.isEmpty(this.sections)) { diff --git a/src/editor.ts b/src/editor.ts index e8326f3..c8b58b2 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -188,12 +188,10 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { if (_.isArray(this.config.entity)) { _.forEach(this.config.entity, entity => { if (_.isString(entity)) { - /* - const entitiesDropdown = createEntitiesDropdown(entity, this.valueUpdated); - if (entitiesDropdown) { - this.plexValidSection.appendChild(entitiesDropdown); - } - */ + const entitiesDropdown = createEntitiesDropdown(entity, this.valueUpdated); + if (entitiesDropdown) { + this.plexValidSection.appendChild(entitiesDropdown); + } } }); }