mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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
|
||||
).map(
|
||||
([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
|
||||
>
|
||||
`
|
||||
@ -179,7 +184,7 @@ class MoreInfoSirenAdvancedControls extends LitElement {
|
||||
await this.hass.callService("siren", "turn_on", {
|
||||
entity_id: this._stateObj!.entity_id,
|
||||
tone: this._tone,
|
||||
volume: this._volume,
|
||||
volume_level: this._volume,
|
||||
duration: this._duration,
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user