update ui + new dev config

This commit is contained in:
ari committed 2022-08-27 13:58:41 -04:00
1 parent ce142f9d84
commit e3c34eeae5
4 files changed
+9 -10

No files matched your search

@@ -87,8 +87,8 @@ const genMapping = (
> = {};
Object.entries(haEntities)
.filter(([entityId, _]) => entityId.toLowerCase().startsWith("automation."))
.forEach(([entityId, entityData]) => {
const autoId = entityData.attributes.id;
.forEach(([entityId, entityData], i) => {
const autoId = entityData.attributes.id ?? `${entityData.state}-${i}`;
let title = entityData.attributes.friendly_name ?? "";
let description = "";
let issue: string | undefined = ["on", "off"].includes(entityData.state)