diff --git a/custom_components/kostal_piko/config_flow.py b/custom_components/kostal_piko/config_flow.py index 2c62f3a..bd582e4 100644 --- a/custom_components/kostal_piko/config_flow.py +++ b/custom_components/kostal_piko/config_flow.py @@ -17,9 +17,7 @@ SETUP_SCHEMA = vol.Schema( { - vol.Required( - CONF_HOST, description={"suggested_value": "http://192.168.178.xyz"} - ): str, + vol.Required(CONF_HOST): str, vol.Required(CONF_USERNAME): str, vol.Required(CONF_PASSWORD): str, } diff --git a/custom_components/kostal_piko/strings.json b/custom_components/kostal_piko/strings.json index f954b3c..b88bcec 100644 --- a/custom_components/kostal_piko/strings.json +++ b/custom_components/kostal_piko/strings.json @@ -9,14 +9,14 @@ "step": { "user": { "data": { - "host": "[%key:common::config_flow::data::host%]", - "username": "[%key:common::config_flow::data::username%]", - "password": "[%key:common::config_flow::data::password%]" + "host": "Host", + "username": "Username", + "password": "Password" } } }, "abort": { - "already_configured": "[%key:common::config_flow::abort::already_configured_device%]" + "already_configured": "Device is already configured" } }, "entity": { diff --git a/custom_components/kostal_piko/translations/de.json b/custom_components/kostal_piko/translations/de.json index b45f70b..337b50a 100644 --- a/custom_components/kostal_piko/translations/de.json +++ b/custom_components/kostal_piko/translations/de.json @@ -9,14 +9,14 @@ "step": { "user": { "data": { - "host": "[%key:common::config_flow::data::host%]", - "username": "[%key:common::config_flow::data::username%]", - "password": "[%key:common::config_flow::data::password%]" + "host": "Host", + "username": "Benutzername", + "password": "Passwort" } } }, "abort": { - "already_configured": "[%key:common::config_flow::abort::already_configured_device%]" + "already_configured": "Ger\u00e4t ist bereits konfiguriert" } }, "entity": { diff --git a/custom_components/kostal_piko/translations/en.json b/custom_components/kostal_piko/translations/en.json deleted file mode 100644 index f954b3c..0000000 --- a/custom_components/kostal_piko/translations/en.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "config": { - "flow_title": "Kostal Piko Inverter Setup", - "error": { - "unknown": "An unknown error occured", - "cannot_connect": "Could not connect to inverter", - "not_specified": "Host not specified" - }, - "step": { - "user": { - "data": { - "host": "[%key:common::config_flow::data::host%]", - "username": "[%key:common::config_flow::data::username%]", - "password": "[%key:common::config_flow::data::password%]" - } - } - }, - "abort": { - "already_configured": "[%key:common::config_flow::abort::already_configured_device%]" - } - }, - "entity": { - "sensor": { - "kostal_piko_battery_charging_state": { - "state": { - "charging": "Charging", - "discharging": "Discharging" - } - }, - "kostal_piko_inverter_operating_state": { - "state": { - "unknown": "Unknown", - "starting": "Starting", - "feed_in": "Feed-In" - } - } - } - } -}