From f493280f0a0eefe557478467059f13926c95d16c Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 23 Mar 2022 23:05:41 +0100 Subject: [PATCH] Exclude restored automations from dashboard (#12113) --- src/panels/config/automation/ha-config-automation.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/panels/config/automation/ha-config-automation.ts b/src/panels/config/automation/ha-config-automation.ts index 70f2b16add..d1a117e616 100644 --- a/src/panels/config/automation/ha-config-automation.ts +++ b/src/panels/config/automation/ha-config-automation.ts @@ -59,7 +59,9 @@ class HaConfigAutomation extends HassRouterPage { private _getAutomations = memoizeOne( (states: HassEntities): AutomationEntity[] => Object.values(states).filter( - (entity) => computeStateDomain(entity) === "automation" + (entity) => + computeStateDomain(entity) === "automation" && + !entity.attributes.restored ) as AutomationEntity[] );