diff --git a/custom_components/vaillant_vsmart/climate.py b/custom_components/vaillant_vsmart/climate.py index 50b8c70..ad2999c 100644 --- a/custom_components/vaillant_vsmart/climate.py +++ b/custom_components/vaillant_vsmart/climate.py @@ -33,8 +33,8 @@ DEFAULT_TEMPERATURE_INCREASE = 1 -PRESET_SUMMER = "summer" -PRESET_WINTER = "winter" +PRESET_SUMMER = "Summer" +PRESET_WINTER = "Winter" SUPPORTED_FEATURES = SUPPORT_TARGET_TEMPERATURE | SUPPORT_PRESET_MODE SUPPORTED_HVAC_MODES = [HVAC_MODE_AUTO, HVAC_MODE_HEAT, HVAC_MODE_OFF] diff --git a/custom_components/vaillant_vsmart/manifest.json b/custom_components/vaillant_vsmart/manifest.json index 2d998c0..cc93237 100644 --- a/custom_components/vaillant_vsmart/manifest.json +++ b/custom_components/vaillant_vsmart/manifest.json @@ -5,8 +5,14 @@ "iot_class": "cloud_polling", "documentation": "https://github.com/MislavMandaric/home-assistant-vaillant-vsmart", "issue_tracker": "https://github.com/MislavMandaric/home-assistant-vaillant-vsmart/issues", - "dependencies": ["http"], + "dependencies": [ + "http" + ], "config_flow": true, - "codeowners": ["@MislavMandaric"], - "requirements": ["vaillant-netatmo-api==0.1.2"] -} + "codeowners": [ + "@MislavMandaric" + ], + "requirements": [ + "vaillant-netatmo-api==0.1.2" + ] +} \ No newline at end of file diff --git a/custom_components/vaillant_vsmart/translations/en.json b/custom_components/vaillant_vsmart/translations/en.json index b250648..989e0cb 100644 --- a/custom_components/vaillant_vsmart/translations/en.json +++ b/custom_components/vaillant_vsmart/translations/en.json @@ -1,31 +1,33 @@ { - "config": { - "step": { - "user": { - "title": "Vaillant vSMART", - "description": "If you need help with the configuration have a look here: https://github.com/MislavMandaric/home-assistant-vaillant-vsmart", - "data": { - "username": "Username", - "password": "Password" - } - } - }, - "error": { - "auth": "Username/Password is wrong." - }, - "abort": { - "single_instance_allowed": "Only a single instance is allowed." - } - }, - "options": { - "step": { - "user": { - "data": { - "binary_sensor": "Binary sensor enabled", - "sensor": "Sensor enabled", - "switch": "Switch enabled" - } - } - } - } -} + "state_attributes": { + "climate": { + "preset_mode": { + "winter": "Winter", + "summer": "Summer" + } + } + }, + "config": { + "step": { + "user": { + "title": "Vaillant vSMART", + "description": "If you need help with the configuration have a look here: https://github.com/MislavMandaric/home-assistant-vaillant-vsmart", + "data": { + "client_id": "Client ID", + "client_secret": "Client secret", + "username": "Username", + "password": "Password", + "user_prefix": "User prefix", + "app_version": "App version" + } + } + }, + "error": { + "unknown": "Something went wrong when authenticating with the API." + }, + "abort": { + "already_in_progress": "Integration for provided user is already in progress.", + "already_configured": "Integration for provided user is already configured." + } + } +} \ No newline at end of file diff --git a/custom_components/vaillant_vsmart/translations/fr.json b/custom_components/vaillant_vsmart/translations/fr.json deleted file mode 100644 index c06c435..0000000 --- a/custom_components/vaillant_vsmart/translations/fr.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "config": { - "step": { - "user": { - "title": "Vaillant vSMART", - "description": "Si vous avez besoin d'aide pour la configuration, regardez ici: https://github.com/MislavMandaric/home-assistant-vaillant-vsmart", - "data": { - "username": "Identifiant", - "password": "Mot de Passe" - } - } - }, - "error": { - "auth": "Identifiant ou mot de passe erroné." - }, - "abort": { - "single_instance_allowed": "Une seule instance est autorisée." - } - }, - "options": { - "step": { - "user": { - "data": { - "binary_sensor": "Capteur binaire activé", - "sensor": "Capteur activé", - "switch": "Interrupteur activé" - } - } - } - } -} diff --git a/custom_components/vaillant_vsmart/translations/hr.json b/custom_components/vaillant_vsmart/translations/hr.json new file mode 100644 index 0000000..fd617d0 --- /dev/null +++ b/custom_components/vaillant_vsmart/translations/hr.json @@ -0,0 +1,33 @@ +{ + "state_attributes": { + "climate": { + "preset_mode": { + "winter": "Zima", + "summer": "Ljeto" + } + } + }, + "config": { + "step": { + "user": { + "title": "Vaillant vSMART", + "description": "Pomoć oko konfiguracije integracije potražite na ovom linku: https://github.com/MislavMandaric/home-assistant-vaillant-vsmart", + "data": { + "client_id": "ID klijenta", + "client_secret": "Tajni kod klijenta", + "username": "Korisničko ime", + "password": "Lozinka", + "user_prefix": "Korisnički prefiks", + "app_version": "Verzija aplikacije" + } + } + }, + "error": { + "unknown": "Došlo je do pogreške u komunikaciji sa serverom." + }, + "abort": { + "already_in_progress": "Integracija je već u tijeku.", + "already_configured": "Integracija je već postavljena." + } + } +} \ No newline at end of file diff --git a/custom_components/vaillant_vsmart/translations/nb.json b/custom_components/vaillant_vsmart/translations/nb.json deleted file mode 100644 index e1f07f9..0000000 --- a/custom_components/vaillant_vsmart/translations/nb.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "config": { - "step": { - "user": { - "title": "Vaillant vSMART", - "description": "Hvis du trenger hjep til konfigurasjon ta en titt her: https://github.com/MislavMandaric/home-assistant-vaillant-vsmart", - "data": { - "username": "Brukernavn", - "password": "Passord" - } - } - }, - "error": { - "auth": "Brukernavn/Passord er feil." - }, - "abort": { - "single_instance_allowed": "Denne integrasjonen kan kun konfigureres en gang." - } - }, - "options": { - "step": { - "user": { - "data": { - "binary_sensor": "Binær sensor aktivert", - "sensor": "Sensor aktivert", - "switch": "Bryter aktivert" - } - } - } - } -}