cleaned up styles for node display
This commit is contained in:
1 parent
9a43330501
commit
4d9afbe26b
10 files changed
+173
-68
No files matched your search
@@ -77,7 +77,13 @@ export const getDescriptionFromAutomationNode = <
|
||||
node.condition === "or" ||
|
||||
node.condition === "not"
|
||||
) {
|
||||
return "Logic";
|
||||
if (node.conditions.length === 0) {
|
||||
return `None`;
|
||||
}
|
||||
const childConditions = node.conditions.map((c) =>
|
||||
getDescriptionFromAutomationNode(c, namer, allowJs)
|
||||
);
|
||||
return childConditions.join(` ${node.condition} `).trim() ?? "None";
|
||||
} else {
|
||||
switch (node.condition) {
|
||||
case "numeric_state":
|
||||
|
||||
Reference in new issue
Block a user