From 14b959b91b6e3dd5fc8447d242e72ee62b7473d9 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 6 Nov 2018 15:17:01 +0100 Subject: [PATCH] Fix cover showing error --- src/common/entity/valid_entity_id.ts | 2 +- src/panels/lovelace/entity-rows/hui-cover-entity-row.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/entity/valid_entity_id.ts b/src/common/entity/valid_entity_id.ts index 29d345c633..45888dab44 100644 --- a/src/common/entity/valid_entity_id.ts +++ b/src/common/entity/valid_entity_id.ts @@ -1,2 +1,2 @@ const validEntityId = /^(\w+)\.(\w+)$/; -export default validEntityId.test; +export default (entityId: string) => validEntityId.test(entityId); diff --git a/src/panels/lovelace/entity-rows/hui-cover-entity-row.ts b/src/panels/lovelace/entity-rows/hui-cover-entity-row.ts index 80b2ee431a..ce430041f6 100644 --- a/src/panels/lovelace/entity-rows/hui-cover-entity-row.ts +++ b/src/panels/lovelace/entity-rows/hui-cover-entity-row.ts @@ -4,6 +4,7 @@ import { TemplateResult } from "lit-html"; import "../components/hui-generic-entity-row"; import "../../../components/ha-cover-controls"; import "../../../components/ha-cover-tilt-controls"; +import "./hui-error-entity-row"; import { isTiltOnly } from "../../../util/cover-model"; import { HomeAssistant } from "../../../types";