mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 04:06:35 +00:00
Pass ozw instance to ozw panel call service buttons (#6992)
This commit is contained in:
parent
de95c92e2d
commit
cdcccf5089
@ -159,11 +159,13 @@ class OZWNetworkDashboard extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _generateServiceButton(service: string) {
|
private _generateServiceButton(service: string) {
|
||||||
|
const serviceData = { instance_id: this.ozwInstance };
|
||||||
return html`
|
return html`
|
||||||
<ha-call-service-button
|
<ha-call-service-button
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
domain="ozw"
|
domain="ozw"
|
||||||
.service=${service}
|
.service=${service}
|
||||||
|
.serviceData=${serviceData}
|
||||||
>
|
>
|
||||||
${this.hass!.localize(`ui.panel.config.ozw.services.${service}`)}
|
${this.hass!.localize(`ui.panel.config.ozw.services.${service}`)}
|
||||||
</ha-call-service-button>
|
</ha-call-service-button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user