mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +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`
|
||||
<hc-launch-screen
|
||||
.hass=${this.hass}
|
||||
|
Loading…
x
Reference in New Issue
Block a user