Skip to content

Commit

Permalink
Merge pull request #1617 from UI-Lovelace-Minimalist/release
Browse files Browse the repository at this point in the history
Sync release with main
  • Loading branch information
wilbiev authored Feb 22, 2025
2 parents 8bdc5e8 + f161c35 commit 35f28c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions custom_components/ui_lovelace_minimalist/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,28 +406,28 @@ async def configure_dashboard(self) -> bool:
"require_admin": False,
}
# Optoinal override can be done with config_flow?
# if not dashboard_url in hass.data["lovelace"]["dashboards"]:
# if not dashboard_url in hass.data["lovelace"].dashboards:
try:
if self.configuration.sidepanel_enabled:
self.hass.data["lovelace"]["dashboards"][dashboard_url] = LovelaceYAML(
self.hass.data["lovelace"].dashboards[dashboard_url] = LovelaceYAML(
self.hass, dashboard_url, dashboard_config
)

_register_panel(
self.hass, dashboard_url, "yaml", dashboard_config, True
)
elif dashboard_url in self.hass.data["lovelace"]["dashboards"]:
elif dashboard_url in self.hass.data["lovelace"].dashboards:
async_remove_panel(self.hass, "ui-lovelace-minimalist")

if self.configuration.adaptive_ui_enabled:
self.hass.data["lovelace"]["dashboards"][adv_dashboard_url] = (
LovelaceYAML(self.hass, adv_dashboard_url, adv_dashboard_config)
self.hass.data["lovelace"].dashboards[adv_dashboard_url] = LovelaceYAML(
self.hass, adv_dashboard_url, adv_dashboard_config
)

_register_panel(
self.hass, adv_dashboard_url, "yaml", adv_dashboard_config, True
)
elif adv_dashboard_url in self.hass.data["lovelace"]["dashboards"]:
elif adv_dashboard_url in self.hass.data["lovelace"].dashboards:
async_remove_panel(self.hass, "adaptive-dash")

except Exception as exception:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ui_lovelace_minimalist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"aiofiles>=0.8.0",
"aiogithubapi>=22.2.4"
],
"version": "v1.3.15"
"version": "v1.3.17"
}

0 comments on commit 35f28c8

Please sign in to comment.