Fix config panel opening
This commit is contained in:
parent
c62e045dae
commit
e9ad612fec
@ -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;
|
||||
|
Reference in New Issue
Block a user