From fe0572544bf666c9061973b523faa929b645e0db Mon Sep 17 00:00:00 2001 From: Andreas Linde <42185+DerAndereAndi@users.noreply.github.com> Date: Wed, 29 Dec 2021 10:55:53 +0100 Subject: [PATCH] Move single device configuration to advanced mode (#2138) - move the single device configuration to advanced mode only, as it is not a common use case - clarify that single device configuration means the user has to add the output to a configuration file manually --- cmd/configure/localization/de.toml | 2 +- cmd/configure/localization/en.toml | 2 +- cmd/configure/main.go | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/configure/localization/de.toml b/cmd/configure/localization/de.toml index 2d1292ce8..b57c20174 100644 --- a/cmd/configure/localization/de.toml +++ b/cmd/configure/localization/de.toml @@ -2,7 +2,7 @@ Intro = "Die nächsten Schritte führen durch die Einrichtung einer Konfiguratio Flow_Type = "Was möchtest du machen?" Flow_Type_NewConfiguration = "Eine neue evcc Konfigurationsdatei erstellen" -Flow_Type_SingleDevice = "Ein einzelnes Gerät konfigurieren" +Flow_Type_SingleDevice = "Ein einzelnes Gerät konfigurieren (muss manuell in eine Konfigurationsdatei eingetragen werden!)" Flow_NewConfiguration_Setup = "- Hausinstallation einrichten" Flow_NewConfiguration_Select = "Wähle eines der folgenden PV Komplettsysteme aus, oder '{{ .ItemNotPresent }}' falls keines dieser Geräte vorhanden ist" diff --git a/cmd/configure/localization/en.toml b/cmd/configure/localization/en.toml index e45d1abb2..11c66e42d 100644 --- a/cmd/configure/localization/en.toml +++ b/cmd/configure/localization/en.toml @@ -2,7 +2,7 @@ Intro = "The next steps will guide you through the creation of a configuration f Flow_Type = "What do you want to do?" Flow_Type_NewConfiguration = "Create a new evcc configuration file" -Flow_Type_SingleDevice = "Configure a single device" +Flow_Type_SingleDevice = "Configure a single device (has to be added manually to a configuration file!)" Flow_NewConfiguration_Setup = "- Setup meters (house installation)" Flow_NewConfiguration_Select = "Choose one of the following PV systems, or '{{ .ItemNotPresent }}' if you have none of them" diff --git a/cmd/configure/main.go b/cmd/configure/main.go index ed37eea3f..096421f1d 100644 --- a/cmd/configure/main.go +++ b/cmd/configure/main.go @@ -65,6 +65,11 @@ func (c *CmdConfigure) Run(log *util.Logger, flagLang string, advancedMode, expa c.setDefaultTexts() + if !c.advancedMode { + c.flowNewConfigFile() + return + } + fmt.Println() fmt.Println(c.localizedString("Intro", nil)) flowChoices := []string{