mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-26 14:27:20 +00:00
Exclude restored automations from dashboard (#12113)
This commit is contained in:
parent
95b80accc9
commit
f493280f0a
@ -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[]
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user