Fix label for cover button mode (#16791)

This commit is contained in:
Paul Bottein 2023-06-06 09:07:53 +02:00 committed by GitHub
parent b0a278df97
commit 7b8f4d1e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ class MoreInfoCover extends LitElement {
<ha-icon-button
.label=${this.hass.localize(
`ui.dialogs.more_info_control.cover.switch_mode.${
this._mode || "position"
this._mode === "position" ? "button" : "position"
}`
)}
.path=${this._mode === "position"