Skip to content

Commit

Permalink
Set correct device_class for top_100_sprint and adjust some icons (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
DCSBL authored Jun 7, 2024
1 parent 36e3578 commit 013fb86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/flitsmeister/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class FMSensorEntityDescription(SensorEntityDescription):
suggested_display_precision=0,
state_class=SensorStateClass.TOTAL_INCREASING,
value_fn=lambda data: data[DATA_STATISTICS].times_in_traffic,
icon="mdi:car",
icon="mdi:car-multiple",
),
FMSensorEntityDescription(
key="top_100_sprint_ms",
Expand All @@ -91,9 +91,9 @@ class FMSensorEntityDescription(SensorEntityDescription):
suggested_display_precision=0,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda data: data[DATA_STATISTICS].top_100_sprint_ms,
icon="mdi:car",
icon="mdi:flag-checkered",
device_class=SensorDeviceClass.DURATION,
),

FMSensorEntityDescription(
key="top_consecutive_days",
name="Top consecutive days",
Expand Down

0 comments on commit 013fb86

Please sign in to comment.