From 013fb861fa0eaa4106a653a761469c199e7d4a83 Mon Sep 17 00:00:00 2001 From: Duco Sebel <74970928+DCSBL@users.noreply.github.com> Date: Fri, 7 Jun 2024 07:27:59 +0200 Subject: [PATCH] Set correct device_class for top_100_sprint and adjust some icons (#6) --- custom_components/flitsmeister/sensor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/flitsmeister/sensor.py b/custom_components/flitsmeister/sensor.py index 2550714..aab811a 100644 --- a/custom_components/flitsmeister/sensor.py +++ b/custom_components/flitsmeister/sensor.py @@ -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", @@ -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",