Pass ozw instance to ozw panel call service buttons (#6992)

This commit is contained in:
Charles Garwood 2020-09-14 17:50:03 -04:00 committed by GitHub
parent de95c92e2d
commit cdcccf5089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>