Skip to content

Commit

Permalink
Changed some sensor icons for better fit
Browse files Browse the repository at this point in the history
  • Loading branch information
loebse committed Dec 27, 2023
1 parent 2916a9e commit 6d47ac2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions custom_components/polestar_api/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 6d47ac2

Please sign in to comment.