mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-15 07:25:54 +00:00
Fix cast (#29141)
This commit is contained in:
@@ -206,7 +206,7 @@ class HcCast extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _handlePickView(ev: CustomEvent<ActionDetail>) {
|
private async _handlePickView(ev: CustomEvent<ActionDetail>) {
|
||||||
const path = this.lovelaceViews![ev.detail.index].path ?? ev.detail.index;
|
const path = this.lovelaceViews?.[ev.detail.index]?.path ?? ev.detail.index;
|
||||||
await ensureConnectedCastSession(this.castManager!, this.auth!);
|
await ensureConnectedCastSession(this.castManager!, this.auth!);
|
||||||
castSendShowLovelaceView(this.castManager, this.auth.data.hassUrl, path);
|
castSendShowLovelaceView(this.castManager, this.auth.data.hassUrl, path);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user