Add unavailable entity to gauge demo (#7530)

This commit is contained in:
Paulus Schoutsen 2020-10-30 14:30:27 +01:00 committed by GitHub
parent 89f359a52f
commit 48ef8c86c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {