Exclude restored automations from dashboard (#12113)

This commit is contained in:
Erik Montnemery 2022-03-23 23:05:41 +01:00 committed by GitHub
parent 95b80accc9
commit f493280f0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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[]
);