Skip to content

Commit 35f28c8

Browse files
authored
Merge pull request #1617 from UI-Lovelace-Minimalist/release
Sync release with main
2 parents 8bdc5e8 + f161c35 commit 35f28c8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

custom_components/ui_lovelace_minimalist/base.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -406,28 +406,28 @@ async def configure_dashboard(self) -> bool:
406406
"require_admin": False,
407407
}
408408
# Optoinal override can be done with config_flow?
409-
# if not dashboard_url in hass.data["lovelace"]["dashboards"]:
409+
# if not dashboard_url in hass.data["lovelace"].dashboards:
410410
try:
411411
if self.configuration.sidepanel_enabled:
412-
self.hass.data["lovelace"]["dashboards"][dashboard_url] = LovelaceYAML(
412+
self.hass.data["lovelace"].dashboards[dashboard_url] = LovelaceYAML(
413413
self.hass, dashboard_url, dashboard_config
414414
)
415415

416416
_register_panel(
417417
self.hass, dashboard_url, "yaml", dashboard_config, True
418418
)
419-
elif dashboard_url in self.hass.data["lovelace"]["dashboards"]:
419+
elif dashboard_url in self.hass.data["lovelace"].dashboards:
420420
async_remove_panel(self.hass, "ui-lovelace-minimalist")
421421

422422
if self.configuration.adaptive_ui_enabled:
423-
self.hass.data["lovelace"]["dashboards"][adv_dashboard_url] = (
424-
LovelaceYAML(self.hass, adv_dashboard_url, adv_dashboard_config)
423+
self.hass.data["lovelace"].dashboards[adv_dashboard_url] = LovelaceYAML(
424+
self.hass, adv_dashboard_url, adv_dashboard_config
425425
)
426426

427427
_register_panel(
428428
self.hass, adv_dashboard_url, "yaml", adv_dashboard_config, True
429429
)
430-
elif adv_dashboard_url in self.hass.data["lovelace"]["dashboards"]:
430+
elif adv_dashboard_url in self.hass.data["lovelace"].dashboards:
431431
async_remove_panel(self.hass, "adaptive-dash")
432432

433433
except Exception as exception:

custom_components/ui_lovelace_minimalist/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"aiofiles>=0.8.0",
1818
"aiogithubapi>=22.2.4"
1919
],
20-
"version": "v1.3.15"
20+
"version": "v1.3.17"
2121
}

0 commit comments

Comments
 (0)