Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card Picker with Previews of cards #4975

Merged
merged 26 commits into from Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
75204f2
Card Picker with Previews of cards
zsarnett Feb 25, 2020
7c98bff
Getting Preview Async - Using dialogs entities
zsarnett Feb 25, 2020
4669819
Create generic getElement - filter entities before
zsarnett Feb 25, 2020
c34d5b2
lint
zsarnett Feb 25, 2020
994ff54
Add entities back to Picker. Set Qualifier
zsarnett Feb 25, 2020
5dc4415
Style Updates
zsarnett Feb 25, 2020
0dafdd8
Move setup of filtered cards to connected
zsarnett Feb 25, 2020
caec3d3
style updates
zsarnett Feb 25, 2020
ba0a775
Dont pull entities if noEntity config
zsarnett Feb 25, 2020
3210ee1
Move all config logic to getConfig
zsarnett Feb 25, 2020
9ee88ee
Style Update - Remove Manual process
zsarnett Feb 25, 2020
1e4a06a
Merge branch 'dev' into card-picker
zsarnett Feb 25, 2020
be3cf2b
lint
zsarnett Feb 25, 2020
c2e501f
Accounting for ll-rebuild for async cards
zsarnett Feb 26, 2020
9938f02
Style Updates - Use GetStubConfig for most
zsarnett Feb 27, 2020
1abc82d
Lint
zsarnett Feb 27, 2020
c527633
Filter entities with function - style - no preview
zsarnett Feb 27, 2020
cfbb9f2
Iframe rename and description
zsarnett Feb 27, 2020
5e1be9a
Move getstubconfig to helper - update spinner
zsarnett Feb 27, 2020
f511398
Style for themes
zsarnett Feb 27, 2020
76707e1
Move entities to be calc once
zsarnett Feb 29, 2020
b8981f4
Should update
zsarnett Mar 2, 2020
6dfab4f
Merge branch 'dev' into card-picker
zsarnett Mar 2, 2020
ca14e14
oops
zsarnett Mar 2, 2020
8234e10
TSC
zsarnett Mar 2, 2020
0a7fbd8
Comments
zsarnett Mar 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/panels/lovelace/common/compute-unused-entities.ts
@@ -1,7 +1,7 @@
import { LovelaceConfig, ActionConfig } from "../../../data/lovelace";
import { HomeAssistant } from "../../../types";

const EXCLUDED_DOMAINS = ["zone", "persistent_notification"];
export const EXCLUDED_DOMAINS = ["zone", "persistent_notification"];

const addFromAction = (entities: Set<string>, actionConfig: ActionConfig) => {
if (
Expand Down Expand Up @@ -61,7 +61,7 @@ const addEntities = (entities: Set<string>, obj) => {
}
};

const computeUsedEntities = (config) => {
export const computeUsedEntities = (config) => {
const entities = new Set<string>();
config.views.forEach((view) => addEntities(entities, view));
return entities;
Expand Down