diff --git a/src/linus-strategy.ts b/src/linus-strategy.ts index f3c4cb0..154c065 100644 --- a/src/linus-strategy.ts +++ b/src/linus-strategy.ts @@ -54,8 +54,8 @@ class LinusStrategy extends HTMLTemplateElement { private static createDomainSubviews(views: LovelaceViewConfig[]) { const exposedViewIds = Helper.getExposedViewIds(); exposedViewIds.forEach(viewId => { - if (Helper.linus_dashboard_config?.excluded_domains.includes(viewId)) return; - if (Helper.linus_dashboard_config?.excluded_device_classes.includes(viewId)) return; + if (Helper.linus_dashboard_config?.excluded_domains?.includes(viewId)) return; + if (Helper.linus_dashboard_config?.excluded_device_classes?.includes(viewId)) return; if (![...CUSTOM_VIEWS, ...DOMAINS_VIEWS].includes(viewId)) return; if (DOMAINS_VIEWS.includes(viewId) && (Helper.domains[viewId] ?? []).length === 0) return; diff --git a/src/utils.ts b/src/utils.ts index 7730ab5..8bed821 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -130,8 +130,8 @@ export async function createChipsFromList(chipsList: string[], chipOptions?: Par : area_slugs.flatMap(area_slug => Object.keys(Helper.areas[area_slug]?.domains ?? {})); for (let chipType of chipsList) { - if (Helper.linus_dashboard_config?.excluded_domains.includes(chipType)) continue; - if (Helper.linus_dashboard_config?.excluded_device_classes.includes(chipType)) continue; + if (Helper.linus_dashboard_config?.excluded_domains?.includes(chipType)) continue; + if (Helper.linus_dashboard_config?.excluded_device_classes?.includes(chipType)) continue; if (!domains.includes(chipType)) continue; const className = Helper.sanitizeClassName(chipType + "Chip"); diff --git a/src/views/AreaView.ts b/src/views/AreaView.ts index 9e6b520..a253474 100644 --- a/src/views/AreaView.ts +++ b/src/views/AreaView.ts @@ -120,8 +120,8 @@ class AreaView { for (const domain of exposedDomainIds) { - if (Helper.linus_dashboard_config?.excluded_domains.includes(domain)) continue; - if (Helper.linus_dashboard_config?.excluded_device_classes.includes(domain)) continue; + if (Helper.linus_dashboard_config?.excluded_domains?.includes(domain)) continue; + if (Helper.linus_dashboard_config?.excluded_device_classes?.includes(domain)) continue; if (domain === "default") continue; try {