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

@@ -23,7 +23,7 @@ import { EntitiesCardEntityConfig } from "../cards/types";
import { actionHandler } from "../common/directives/action-handler-directive";
import { handleAction } from "../common/handle-action";
import { hasAction } from "../common/has-action";
import "./hui-warning";
import { createEntityNotFoundWarning } from "./hui-warning";
class HuiGenericEntityRow extends LitElement {
@property() public hass?: HomeAssistant;
@@ -42,13 +42,9 @@ class HuiGenericEntityRow extends LitElement {
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>
`;
}