Handle starting the frontend before finished loading integrations (#6068)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Bram Kragten
2020-05-29 06:09:26 +02:00
committed by GitHub
parent 2e5ec1f0c1
commit d0a53d1760
49 changed files with 352 additions and 261 deletions

View File

@@ -12,7 +12,7 @@ import { computeStateDisplay } from "../../../common/entity/compute_state_displa
import { HomeAssistant } from "../../../types";
import { hasConfigOrEntityChanged } from "../common/has-changed";
import "../components/hui-generic-entity-row";
import "../components/hui-warning";
import { createEntityNotFoundWarning } from "../components/hui-warning";
import { LovelaceRow } from "./types";
import { DOMAINS_HIDE_MORE_INFO } from "../../../common/const";
import { computeDomain } from "../../../common/entity/compute_domain";
@@ -49,13 +49,9 @@ class HuiTextEntityRow extends LitElement implements LovelaceRow {
if (!stateObj) {
return html`
<hui-warning
>${this.hass.localize(
"ui.panel.lovelace.warning.entity_not_found",
"entity",
this._config.entity
)}</hui-warning
>
<hui-warning>
${createEntityNotFoundWarning(this.hass, this._config.entity)}
</hui-warning>
`;
}