From e9ad612fec5f28ebbd080aeaad757030cb695b9e Mon Sep 17 00:00:00 2001 From: Yegor Vialov Date: Sun, 3 May 2020 10:00:32 +0000 Subject: [PATCH] Fix config panel opening --- lib/panels/panel_class.dart | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/panels/panel_class.dart b/lib/panels/panel_class.dart index 47893b2..1ec6041 100644 --- a/lib/panels/panel_class.dart +++ b/lib/panels/panel_class.dart @@ -28,13 +28,7 @@ class Panel { } void handleOpen(BuildContext context) { - if (componentName == "config") { - Navigator.of(context).push( - MaterialPageRoute( - builder: (context) => PanelPage(title: "$title", panel: this), - ) - ); - } else if (componentName.startsWith('haclient')) { + if (componentName.startsWith('haclient')) { Navigator.of(context).pushNamed(urlPath); } else if (componentName == 'lovelace') { HomeAssistant().lovelaceDashboardUrl = this.urlPath;