From 1e1090885218786570db8314f939a814f78b5d21 Mon Sep 17 00:00:00 2001 From: "Sergey V. DUDANOV" Date: Tue, 16 Jul 2024 22:27:31 +0400 Subject: [PATCH] changes --- custom_components/ftms/sensor.py | 14 +++++++++----- custom_components/ftms/translations/en.json | 6 ++++++ custom_components/ftms/translations/ru.json | 6 ++++++ 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/custom_components/ftms/sensor.py b/custom_components/ftms/sensor.py index 8697f2f..81775fe 100644 --- a/custom_components/ftms/sensor.py +++ b/custom_components/ftms/sensor.py @@ -41,7 +41,7 @@ device_class=SensorDeviceClass.DISTANCE, native_unit_of_measurement=UnitOfLength.METERS, state_class=SensorStateClass.TOTAL, - icon="mdi:map-marker-distance", + icon="mdi:stairs-down", ) _ELEVATION_GAIN_POSITIVE = SensorEntityDescription( @@ -49,7 +49,7 @@ device_class=SensorDeviceClass.DISTANCE, native_unit_of_measurement=UnitOfLength.METERS, state_class=SensorStateClass.TOTAL, - icon="mdi:map-marker-distance", + icon="mdi:stairs-up", ) _ENERGY_PER_HOUR = SensorEntityDescription( @@ -89,7 +89,7 @@ _INCLINATION = SensorEntityDescription( key=c.INCLINATION, - icon="mdi:heart-pulse", + icon="mdi:angle-acute", native_unit_of_measurement="%", state_class=SensorStateClass.MEASUREMENT, ) @@ -103,7 +103,7 @@ _MOVEMENT_DIRECTION = SensorEntityDescription( key=c.MOVEMENT_DIRECTION, - icon="mdi:heart-pulse", + icon="mdi:swap-horizontal-bold", device_class=SensorDeviceClass.ENUM, options=["forward", "backward"], ) @@ -113,6 +113,7 @@ device_class=SensorDeviceClass.SPEED, native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR, state_class=SensorStateClass.MEASUREMENT, + icon="mdi:run", ) _PACE_INSTANT = SensorEntityDescription( @@ -120,6 +121,7 @@ device_class=SensorDeviceClass.SPEED, native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR, state_class=SensorStateClass.MEASUREMENT, + icon="mdi:run", ) _POWER_AVERAGE = SensorEntityDescription( @@ -174,6 +176,7 @@ device_class=SensorDeviceClass.DURATION, native_unit_of_measurement=UnitOfTime.SECONDS, state_class=SensorStateClass.MEASUREMENT, + icon="mdi:rowing", ) _SPLIT_TIME_INSTANT = SensorEntityDescription( @@ -181,6 +184,7 @@ device_class=SensorDeviceClass.DURATION, native_unit_of_measurement=UnitOfTime.SECONDS, state_class=SensorStateClass.MEASUREMENT, + icon="mdi:rowing", ) _STEP_RATE_AVERAGE = SensorEntityDescription( @@ -238,7 +242,7 @@ device_class=SensorDeviceClass.DURATION, native_unit_of_measurement=UnitOfTime.SECONDS, state_class=SensorStateClass.TOTAL, - icon="mdi:timer-play", + icon="mdi:timer-stop", ) _ENTITIES = { diff --git a/custom_components/ftms/translations/en.json b/custom_components/ftms/translations/en.json index 6eb4ea9..4138a2f 100644 --- a/custom_components/ftms/translations/en.json +++ b/custom_components/ftms/translations/en.json @@ -118,6 +118,12 @@ "speed_instant": { "name": "Speed" }, + "split_time_average": { + "name": "Average split time" + }, + "split_time_instant": { + "name": "Split time" + }, "step_count": { "name": "Step count" }, diff --git a/custom_components/ftms/translations/ru.json b/custom_components/ftms/translations/ru.json index 18556b0..26e6302 100644 --- a/custom_components/ftms/translations/ru.json +++ b/custom_components/ftms/translations/ru.json @@ -118,6 +118,12 @@ "speed_instant": { "name": "Скорость" }, + "split_time_average": { + "name": "Средний темп гребли" + }, + "split_time_instant": { + "name": "Темп гребли" + }, "step_count": { "name": "Шаги" },