mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Fix Cast race condition (#3732)
This commit is contained in:
parent
bf343647d4
commit
065e42c8fd
@ -57,7 +57,13 @@ export class HcMain extends HassElement {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this._lovelaceConfig || this._lovelacePath === null) {
|
if (
|
||||||
|
!this._lovelaceConfig ||
|
||||||
|
this._lovelacePath === null ||
|
||||||
|
// Guard against part of HA not being loaded yet.
|
||||||
|
(this.hass &&
|
||||||
|
(!this.hass.states || !this.hass.config || !this.hass.services))
|
||||||
|
) {
|
||||||
return html`
|
return html`
|
||||||
<hc-launch-screen
|
<hc-launch-screen
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user