Fix dashboard switching and dashboard icons

This commit is contained in:
Yegor Vialov
2020-03-20 10:14:14 +00:00
parent 5ced01463f
commit 8e31eaf8bb
4 changed files with 17 additions and 18 deletions

View File

@ -36,6 +36,7 @@ class Panel {
);
} else if (componentName == 'lovelace') {
HomeAssistant().lovelaceDashboardUrl = this.urlPath;
HomeAssistant().autoUi = false;
SharedPreferences.getInstance().then((prefs) {
prefs.setString('lovelace_dashboard_url', this.urlPath);
eventBus.fire(ReloadUIEvent());