mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +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) {
|
||||
const serviceData = { instance_id: this.ozwInstance };
|
||||
return html`
|
||||
<ha-call-service-button
|
||||
.hass=${this.hass}
|
||||
domain="ozw"
|
||||
.service=${service}
|
||||
.serviceData=${serviceData}
|
||||
>
|
||||
${this.hass!.localize(`ui.panel.config.ozw.services.${service}`)}
|
||||
</ha-call-service-button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user