From 2916a9e65cf628cdfcfd047471d14a9428fbb0a5 Mon Sep 17 00:00:00 2001 From: Sebastian Loeb Date: Wed, 27 Dec 2023 10:08:20 +0100 Subject: [PATCH 1/3] Correct German translations --- .../polestar_api/translations/de.json | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/custom_components/polestar_api/translations/de.json b/custom_components/polestar_api/translations/de.json index 2119d31..dbd7458 100644 --- a/custom_components/polestar_api/translations/de.json +++ b/custom_components/polestar_api/translations/de.json @@ -34,49 +34,49 @@ "name": "Durchschnittsgeschwindigkeit (km/h)" }, "polestar_current_trip_meter_automatic": { - "name": "Trip Meter Automatisch" + "name": "Kilometerzähler automatisch" }, "polestar_current_trip_meter_manual": { - "name": "Trip Meter Manuell" + "name": "Kilometerzähler manuell" }, "polestar_battery_charge_level": { "name": "Batterieladestand" }, "polestar_estimated_charging_time_to_full_minutes": { - "name": "Geschätzte Ladezeit bis zur vollen Batterie" + "name": "Geschätzte Ladezeit bis zur vollen Batterie (Minuten)" }, "polestar_charging_status": { - "name": "Ladezustand" + "name": "Ladestatus" }, "polestar_charging_power_watts": { - "name": "Ladeleistung" + "name": "Ladeleistung (W)" }, "polestar_charging_current_amps": { - "name": "Ladestrom" + "name": "Ladestrom (A)" }, "polestar_charger_connection_status": { - "name": "Ladestatus" + "name": "Verbindungsstatus Ladepunkt" }, "polestar_average_energy_consumption_kwh_per_100_km": { "name": "Durchschnittlicher Energieverbrauch (kWh/100km)" }, "polestar_estimated_charging_time_minutes_to_target_distance": { - "name": "Geschätzte Ladezeit bis zur Zielentfernung" + "name": "Geschätzte Ladezeit bis zur Zielreichweite" }, "polestar_vin": { "name": "VIN" }, "polestar_registration_number": { - "name": "Registrierungsnummer" + "name": "Kennzeichen" }, "polestar_estimated_fully_charged_time": { - "name": "Geschätzte vollständig geladene Zeit" + "name": "Geschätzte Zeit zur vollen Ladung" }, "polestar_model_name": { "name": "Modellname" }, "polestar_last_updated_odometer_data": { - "name": "Letzte Aktualisierung der Kilometerstanddaten" + "name": "Letzte Aktualisierung des Kilometerstands" }, "polestar_last_updated_battery_data": { "name": "Letzte Aktualisierung der Batteriedaten" @@ -91,8 +91,8 @@ "name": "API Status Code" }, "polestar_api_token_expires_at": { - "name": "API Token läuft ab" + "name": "API Token gültig bis" } } } -} +} \ No newline at end of file From 6d47ac24674db5ec82977f95d79962b83381f2fc Mon Sep 17 00:00:00 2001 From: Sebastian Loeb Date: Wed, 27 Dec 2023 10:43:45 +0100 Subject: [PATCH 2/3] Changed some sensor icons for better fit --- custom_components/polestar_api/sensor.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/custom_components/polestar_api/sensor.py b/custom_components/polestar_api/sensor.py index 0726ffc..8b04a11 100644 --- a/custom_components/polestar_api/sensor.py +++ b/custom_components/polestar_api/sensor.py @@ -113,7 +113,7 @@ class PolestarSensorDescription( PolestarSensorDescription( key="average_speed_km_per_hour", name="Avg Speed Per Hour", - icon="mdi:map-marker-distance", + icon="mdi:speedometer", query="getOdometerData", field_name="averageSpeedKmPerHour", unit='km', @@ -175,7 +175,7 @@ class PolestarSensorDescription( PolestarSensorDescription( key="charging_status", name="Charging status", - icon="mdi:battery-clock", + icon="mdi:ev-station", query="getBatteryData", field_name="chargingStatus", unit=None, @@ -212,7 +212,7 @@ class PolestarSensorDescription( PolestarSensorDescription( key="charger_connection_status", name="Charging Connection Status", - icon="mdi:battery-clock", + icon="mdi:connection", query="getBatteryData", field_name="chargerConnectionStatus", unit=None, @@ -286,6 +286,7 @@ class PolestarSensorDescription( PolestarSensorDescription( key="model_name", name="Model name", + icon="mdi:car-electric", query="getConsumerCarsV2", field_name="content/model/name", unit=None, @@ -296,6 +297,7 @@ class PolestarSensorDescription( PolestarSensorDescription( key="last_updated_odometer_data", name="Last updated odometer data", + icon="mdi:counter", query="getOdometerData", field_name="eventUpdatedTimestamp/iso", unit=None, From c725941a2c32550ad632c878553d08d9e077ad87 Mon Sep 17 00:00:00 2001 From: Sebastian Loeb Date: Wed, 27 Dec 2023 11:01:00 +0100 Subject: [PATCH 3/3] Revert "Changed some sensor icons for better fit" This reverts commit 6d47ac24674db5ec82977f95d79962b83381f2fc. --- custom_components/polestar_api/sensor.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/custom_components/polestar_api/sensor.py b/custom_components/polestar_api/sensor.py index 8b04a11..0726ffc 100644 --- a/custom_components/polestar_api/sensor.py +++ b/custom_components/polestar_api/sensor.py @@ -113,7 +113,7 @@ class PolestarSensorDescription( PolestarSensorDescription( key="average_speed_km_per_hour", name="Avg Speed Per Hour", - icon="mdi:speedometer", + icon="mdi:map-marker-distance", query="getOdometerData", field_name="averageSpeedKmPerHour", unit='km', @@ -175,7 +175,7 @@ class PolestarSensorDescription( PolestarSensorDescription( key="charging_status", name="Charging status", - icon="mdi:ev-station", + icon="mdi:battery-clock", query="getBatteryData", field_name="chargingStatus", unit=None, @@ -212,7 +212,7 @@ class PolestarSensorDescription( PolestarSensorDescription( key="charger_connection_status", name="Charging Connection Status", - icon="mdi:connection", + icon="mdi:battery-clock", query="getBatteryData", field_name="chargerConnectionStatus", unit=None, @@ -286,7 +286,6 @@ class PolestarSensorDescription( PolestarSensorDescription( key="model_name", name="Model name", - icon="mdi:car-electric", query="getConsumerCarsV2", field_name="content/model/name", unit=None, @@ -297,7 +296,6 @@ class PolestarSensorDescription( PolestarSensorDescription( key="last_updated_odometer_data", name="Last updated odometer data", - icon="mdi:counter", query="getOdometerData", field_name="eventUpdatedTimestamp/iso", unit=None,