mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 02:06:42 +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(
|
private _getAutomations = memoizeOne(
|
||||||
(states: HassEntities): AutomationEntity[] =>
|
(states: HassEntities): AutomationEntity[] =>
|
||||||
Object.values(states).filter(
|
Object.values(states).filter(
|
||||||
(entity) => computeStateDomain(entity) === "automation"
|
(entity) =>
|
||||||
|
computeStateDomain(entity) === "automation" &&
|
||||||
|
!entity.attributes.restored
|
||||||
) as AutomationEntity[]
|
) as AutomationEntity[]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user