Skip to content

Commit

Permalink
fix(core): refresh view config before returning
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Zanotto committed Sep 18, 2024
1 parent a40107b commit 6893189
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/configManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ class ConfigManager {
return ConfigManager.panel;
}
public static getViews(): LovelaceViewConfig[] | null {
const haPanelLovelace: (HTMLElement & PanelLovelaceCustom) | null = PageObjectManager.haPanelLovelace.getDomNode();
const views = haPanelLovelace?.lovelace?.config?.views;
if (views != null) {
ConfigManager.views = views;
}

return ConfigManager.views;
}
public static getCurrentViewName(): string | null {
Expand Down

0 comments on commit 6893189

Please sign in to comment.