diff --git a/cast/src/receiver/layout/hc-demo.ts b/cast/src/receiver/layout/hc-demo.ts index 763d6baa59..a5822ebe97 100644 --- a/cast/src/receiver/layout/hc-demo.ts +++ b/cast/src/receiver/layout/hc-demo.ts @@ -33,10 +33,10 @@ class HcDemo extends HassElement { protected firstUpdated(changedProps) { super.firstUpdated(changedProps); - this._initialize(); + this._initializeHass(); } - private async _initialize() { + private async _initializeHass() { const initial: Partial = { // Override updateHass so that the correct hass lifecycle methods are called updateHass: (hassUpdate: Partial) => diff --git a/demo/src/ha-demo.ts b/demo/src/ha-demo.ts index 921420e45b..70bcbb50d4 100644 --- a/demo/src/ha-demo.ts +++ b/demo/src/ha-demo.ts @@ -22,9 +22,9 @@ import { mockTemplate } from "./stubs/template"; import { mockTranslations } from "./stubs/translations"; class HaDemo extends HomeAssistantAppEl { - protected async _initialize() { + protected async _initializeHass() { const initial: Partial = { - panelUrl: (this as any).panelUrl, + panelUrl: (this as any)._panelUrl, // Override updateHass so that the correct hass lifecycle methods are called updateHass: (hassUpdate: Partial) => this._updateHass(hassUpdate),