Fix cloud webhooks (#7261)

This commit is contained in:
Bram Kragten 2020-10-08 10:33:06 +02:00
parent cce7ad449a
commit 0e10c81025

View File

@ -89,7 +89,7 @@ export class CloudWebhooks extends LitElement {
`
: this._localHooks.map(
(entry) => html`
<ha-settings-row .narrow=${this.narrow}>
<ha-settings-row .narrow=${this.narrow} .entry=${entry}>
<span slot="heading">
${entry.name}
${entry.domain !== entry.name.toLowerCase()
@ -157,7 +157,7 @@ export class CloudWebhooks extends LitElement {
}
private async _enableWebhook(ev: MouseEvent) {
const entry = (ev.currentTarget as any).parentElement.entry;
const entry = (ev.currentTarget as any).parentElement!.entry as Webhook;
this._progress = [...this._progress, entry.webhook_id];
let updatedWebhook;