mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Fix siren advanced controls (#24318)
This commit is contained in:
parent
f3d614b0d3
commit
a68bdbfe08
@ -99,7 +99,12 @@ class MoreInfoSirenAdvancedControls extends LitElement {
|
|||||||
this._stateObj.attributes.available_tones
|
this._stateObj.attributes.available_tones
|
||||||
).map(
|
).map(
|
||||||
([toneId, toneName]) => html`
|
([toneId, toneName]) => html`
|
||||||
<ha-list-item .value=${toneId}
|
<ha-list-item
|
||||||
|
.value=${Array.isArray(
|
||||||
|
this._stateObj!.attributes.available_tones
|
||||||
|
)
|
||||||
|
? toneName
|
||||||
|
: toneId}
|
||||||
>${toneName}</ha-list-item
|
>${toneName}</ha-list-item
|
||||||
>
|
>
|
||||||
`
|
`
|
||||||
@ -179,7 +184,7 @@ class MoreInfoSirenAdvancedControls extends LitElement {
|
|||||||
await this.hass.callService("siren", "turn_on", {
|
await this.hass.callService("siren", "turn_on", {
|
||||||
entity_id: this._stateObj!.entity_id,
|
entity_id: this._stateObj!.entity_id,
|
||||||
tone: this._tone,
|
tone: this._tone,
|
||||||
volume: this._volume,
|
volume_level: this._volume,
|
||||||
duration: this._duration,
|
duration: this._duration,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user