@@ -406,28 +406,28 @@ async def configure_dashboard(self) -> bool:
406
406
"require_admin" : False ,
407
407
}
408
408
# 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:
410
410
try :
411
411
if self .configuration .sidepanel_enabled :
412
- self .hass .data ["lovelace" ][ " dashboards" ] [dashboard_url ] = LovelaceYAML (
412
+ self .hass .data ["lovelace" ]. dashboards [dashboard_url ] = LovelaceYAML (
413
413
self .hass , dashboard_url , dashboard_config
414
414
)
415
415
416
416
_register_panel (
417
417
self .hass , dashboard_url , "yaml" , dashboard_config , True
418
418
)
419
- elif dashboard_url in self .hass .data ["lovelace" ][ " dashboards" ] :
419
+ elif dashboard_url in self .hass .data ["lovelace" ]. dashboards :
420
420
async_remove_panel (self .hass , "ui-lovelace-minimalist" )
421
421
422
422
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
425
425
)
426
426
427
427
_register_panel (
428
428
self .hass , adv_dashboard_url , "yaml" , adv_dashboard_config , True
429
429
)
430
- elif adv_dashboard_url in self .hass .data ["lovelace" ][ " dashboards" ] :
430
+ elif adv_dashboard_url in self .hass .data ["lovelace" ]. dashboards :
431
431
async_remove_panel (self .hass , "adaptive-dash" )
432
432
433
433
except Exception as exception :
0 commit comments