From 175b334d046579cad9c6476944d2bb98e87cdda1 Mon Sep 17 00:00:00 2001 From: Tuen Lee Date: Thu, 4 Jan 2024 13:14:24 +0100 Subject: [PATCH] remove sensor key with meter, watt, amps,... --- custom_components/polestar_api/sensor.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/custom_components/polestar_api/sensor.py b/custom_components/polestar_api/sensor.py index c357742..829dd08 100644 --- a/custom_components/polestar_api/sensor.py +++ b/custom_components/polestar_api/sensor.py @@ -112,7 +112,7 @@ class PolestarSensorDescription( # dict_data=None, # ), PolestarSensorDescription( - key="current_odometer_meters", + key="current_odometer", name="Odometer", icon="mdi:map-marker-distance", query="getOdometerData", @@ -125,7 +125,7 @@ class PolestarSensorDescription( dict_data=None ), PolestarSensorDescription( - key="average_speed_per_hour", + key="average_speed", name="Avg. Speed", icon="mdi:speedometer", query="getOdometerData", @@ -176,7 +176,7 @@ class PolestarSensorDescription( dict_data=None ), PolestarSensorDescription( - key="estimated_charging_time_to_full_minutes", + key="estimated_charging_time_to_full", name="Charging Time", icon="mdi:battery-clock", query="getBatteryData", @@ -198,7 +198,7 @@ class PolestarSensorDescription( dict_data=CHARGING_STATUS_DICT ), PolestarSensorDescription( - key="charging_power_watts", + key="charging_power", name="Charging Power", icon="mdi:lightning-bolt", query="getBatteryData", @@ -211,7 +211,7 @@ class PolestarSensorDescription( dict_data=None ), PolestarSensorDescription( - key="charging_current_amps", + key="charging_current", name="Charging Current", icon="mdi:current-ac", query="getBatteryData",