Fix cloud webhooks (#7261)

This commit is contained in:
Bram Kragten 2020-10-08 10:33:06 +02:00 committed by GitHub
parent 919c86796f
commit 80b7c840e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;