mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-26 14:27:20 +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(
|
private _getAutomations = memoizeOne(
|
||||||
(states: HassEntities): AutomationEntity[] => {
|
(states: HassEntities): AutomationEntity[] => {
|
||||||
return Object.values(states).filter(
|
return Object.values(states).filter(
|
||||||
(entity) =>
|
(entity) => computeStateDomain(entity) === "automation"
|
||||||
computeStateDomain(entity) === "automation" &&
|
|
||||||
!entity.attributes.hidden
|
|
||||||
) as AutomationEntity[];
|
) as AutomationEntity[];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -53,8 +53,7 @@ class HaConfigScene extends HassRouterPage {
|
|||||||
|
|
||||||
private _getScenes = memoizeOne((states: HassEntities): SceneEntity[] => {
|
private _getScenes = memoizeOne((states: HassEntities): SceneEntity[] => {
|
||||||
return Object.values(states).filter(
|
return Object.values(states).filter(
|
||||||
(entity) =>
|
(entity) => computeStateDomain(entity) === "scene"
|
||||||
computeStateDomain(entity) === "scene" && !entity.attributes.hidden
|
|
||||||
) as SceneEntity[];
|
) as SceneEntity[];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -53,8 +53,7 @@ class HaConfigScript extends HassRouterPage {
|
|||||||
|
|
||||||
private _getScripts = memoizeOne((states: HassEntities): ScriptEntity[] => {
|
private _getScripts = memoizeOne((states: HassEntities): ScriptEntity[] => {
|
||||||
return Object.values(states).filter(
|
return Object.values(states).filter(
|
||||||
(entity) =>
|
(entity) => computeStateDomain(entity) === "script"
|
||||||
computeStateDomain(entity) === "script" && !entity.attributes.hidden
|
|
||||||
) as ScriptEntity[];
|
) as ScriptEntity[];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user