Fix Switch as X unable to change to a new type (#12797)

This commit is contained in:
Zack Barett 2022-05-26 10:15:14 -05:00 committed by GitHub
parent c0d30c56d6
commit 3550a8c263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -378,8 +378,7 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
</mwc-list-item>
<mwc-list-item
value="outlet"
.selected=${!this._deviceClass ||
this._deviceClass === "outlet"}
.selected=${this._deviceClass === "outlet"}
>
${this.hass.localize(
"ui.dialogs.entity_registry.editor.device_classes.switch.outlet"