mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +00:00
✨ add conditional row (#4569)
* ✨ add conditional row
* fix types
* address comments
This commit is contained in:
committed by
Bram Kragten
parent
23865c31e6
commit
74c6b9077a
@@ -14,11 +14,11 @@ import "../components/hui-warning";
|
||||
|
||||
import { computeStateDisplay } from "../../../common/entity/compute_state_display";
|
||||
import { HomeAssistant } from "../../../types";
|
||||
import { EntityRow, EntityConfig } from "./types";
|
||||
import { LovelaceRow, EntityConfig } from "./types";
|
||||
import { hasConfigOrEntityChanged } from "../common/has-changed";
|
||||
|
||||
@customElement("hui-text-entity-row")
|
||||
class HuiTextEntityRow extends LitElement implements EntityRow {
|
||||
class HuiTextEntityRow extends LitElement implements LovelaceRow {
|
||||
@property() public hass?: HomeAssistant;
|
||||
|
||||
@property() private _config?: EntityConfig;
|
||||
|
||||
Reference in New Issue
Block a user