From 5e8886aeb7c2aa8cdf2587571dce55ddabe53a62 Mon Sep 17 00:00:00 2001 From: Midori Kochiya Date: Mon, 4 May 2026 01:00:51 +0800 Subject: [PATCH] Fix M1S-T500 update error (#169651) --- homeassistant/components/xiaomi_ble/sensor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/xiaomi_ble/sensor.py b/homeassistant/components/xiaomi_ble/sensor.py index 3b2fcddc1971..baea9c709531 100644 --- a/homeassistant/components/xiaomi_ble/sensor.py +++ b/homeassistant/components/xiaomi_ble/sensor.py @@ -145,10 +145,9 @@ SENSOR_DESCRIPTIONS = { key=str(ExtendedSensorDeviceClass.SCORE), state_class=SensorStateClass.MEASUREMENT, ), - # Counting during brushing - (ExtendedSensorDeviceClass.COUNTER, Units.TIME_SECONDS): SensorEntityDescription( + # Counter of brushing + (ExtendedSensorDeviceClass.COUNTER, None): SensorEntityDescription( key=str(ExtendedSensorDeviceClass.COUNTER), - native_unit_of_measurement=UnitOfTime.SECONDS, state_class=SensorStateClass.MEASUREMENT, ), # Key id for locks and fingerprint readers