mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-24 21:37:21 +00:00
Remove filtering for attribute hidden (#6171)
This commit is contained in:
parent
8c0c0592e2
commit
256b64b6b3
@ -54,9 +54,7 @@ class HaConfigAutomation extends HassRouterPage {
|
||||
private _getAutomations = memoizeOne(
|
||||
(states: HassEntities): AutomationEntity[] => {
|
||||
return Object.values(states).filter(
|
||||
(entity) =>
|
||||
computeStateDomain(entity) === "automation" &&
|
||||
!entity.attributes.hidden
|
||||
(entity) => computeStateDomain(entity) === "automation"
|
||||
) as AutomationEntity[];
|
||||
}
|
||||
);
|
||||
|
@ -53,8 +53,7 @@ class HaConfigScene extends HassRouterPage {
|
||||
|
||||
private _getScenes = memoizeOne((states: HassEntities): SceneEntity[] => {
|
||||
return Object.values(states).filter(
|
||||
(entity) =>
|
||||
computeStateDomain(entity) === "scene" && !entity.attributes.hidden
|
||||
(entity) => computeStateDomain(entity) === "scene"
|
||||
) as SceneEntity[];
|
||||
});
|
||||
|
||||
|
@ -53,8 +53,7 @@ class HaConfigScript extends HassRouterPage {
|
||||
|
||||
private _getScripts = memoizeOne((states: HassEntities): ScriptEntity[] => {
|
||||
return Object.values(states).filter(
|
||||
(entity) =>
|
||||
computeStateDomain(entity) === "script" && !entity.attributes.hidden
|
||||
(entity) => computeStateDomain(entity) === "script"
|
||||
) as ScriptEntity[];
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user