From 2a16ea4727c430c2e2a771241f48f9413251b730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Franc=CC=A7ois=20Paris?= Date: Mon, 13 Jan 2025 22:28:27 +0000 Subject: [PATCH] Fixed 3 sensors with state/Sensor class mixed up --- custom_components/garmin_connect/const.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/garmin_connect/const.py b/custom_components/garmin_connect/const.py index db90940..34dc70f 100644 --- a/custom_components/garmin_connect/const.py +++ b/custom_components/garmin_connect/const.py @@ -399,13 +399,13 @@ GARMIN_ENTITY_LIST = { "visceralFat": ["Visceral Fat", PERCENTAGE, "mdi:food", None, SensorStateClass.MEASUREMENT, False], "metabolicAge": ["Metabolic Age", UnitOfTime.YEARS, "mdi:calendar-heart", None, SensorStateClass.MEASUREMENT, False], "nextAlarm": ["Next Alarm Time", None, "mdi:alarm", SensorDeviceClass.TIMESTAMP, None, True], - "lastActivities": ["Last Activities", None, "mdi:numeric", SensorStateClass.TOTAL, None, False], - "badges": ["Badges", None, "mdi:numeric", SensorStateClass.TOTAL, None, False], + "lastActivities": ["Last Activities", None, "mdi:numeric", None, SensorStateClass.TOTAL, False], + "badges": ["Badges", None, "mdi:numeric", None, SensorStateClass.TOTAL, False], "sleepScore": [ "Sleep Score", None, "mdi:sleep", - SensorStateClass.TOTAL, + None, SensorStateClass.MEASUREMENT, True, ],