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); + } } }); }