Hide empty blocks on device page (#3950)

* Hide empty blocks on device page

* lint

* Rename entities on device rename

* check if entity_id is valid

* clarify var name

* Review comments

* Use regex to replace not allowed chars

* Align with backend
This commit is contained in:
Bram Kragten
2019-10-08 17:53:31 +02:00
committed by Paulus Schoutsen
parent 12d8a04c15
commit 9ad7f0dbac
13 changed files with 198 additions and 91 deletions

View File

@@ -10,7 +10,7 @@ import "@polymer/paper-icon-button/paper-icon-button-light";
import { HomeAssistant } from "../../types";
import { PolymerChangedEvent } from "../../polymer-types";
import { fireEvent } from "../../common/dom/fire_event";
import isValidEntityId from "../../common/entity/valid_entity_id";
import { isValidEntityId } from "../../common/entity/valid_entity_id";
import "./ha-entity-picker";
// Not a duplicate, type import