mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Add unavailable entity to gauge demo (#7530)
This commit is contained in:
parent
89f359a52f
commit
48ef8c86c2
@ -8,6 +8,7 @@ import "../components/demo-cards";
|
|||||||
const ENTITIES = [
|
const ENTITIES = [
|
||||||
getEntity("sensor", "brightness", "12", {}),
|
getEntity("sensor", "brightness", "12", {}),
|
||||||
getEntity("plant", "bonsai", "ok", {}),
|
getEntity("plant", "bonsai", "ok", {}),
|
||||||
|
getEntity("sensor", "not_working", "unavailable", {}),
|
||||||
getEntity("sensor", "outside_humidity", "54", {
|
getEntity("sensor", "outside_humidity", "54", {
|
||||||
unit_of_measurement: "%",
|
unit_of_measurement: "%",
|
||||||
}),
|
}),
|
||||||
@ -74,6 +75,13 @@ const CONFIGS = [
|
|||||||
entity: plant.bonsai
|
entity: plant.bonsai
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
heading: "Unavailable entity",
|
||||||
|
config: `
|
||||||
|
- type: gauge
|
||||||
|
entity: sensor.not_working
|
||||||
|
`,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
class DemoGaugeEntity extends PolymerElement {
|
class DemoGaugeEntity extends PolymerElement {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user