diff --git a/src/panels/lovelace/entity-rows/hui-input-select-entity-row.ts b/src/panels/lovelace/entity-rows/hui-input-select-entity-row.ts index 1db8a8c1b6..931117bc58 100644 --- a/src/panels/lovelace/entity-rows/hui-input-select-entity-row.ts +++ b/src/panels/lovelace/entity-rows/hui-input-select-entity-row.ts @@ -92,9 +92,14 @@ class HuiInputSelectEntityRow extends LitElement implements LovelaceRow { `; private _selectedChanged(ev): void { - const stateObj = this.hass!.states[this._config!.entity]; + const stateObj = this.hass!.states[ + this._config!.entity + ] as InputSelectEntity; const option = ev.target.value; - if (option === stateObj.state) { + if ( + option === stateObj.state || + !stateObj.attributes.options.includes(option) + ) { return; }