@@ -87,7 +87,6 @@ class AirconCleanFilterSensor(BaseAirconSensor):
8787 """Representation of an Actron Air clean filter sensor."""
8888
8989 _attr_translation_key = "clean_filter"
90- _attr_device_class = SensorDeviceClass .ENUM
9190
9291 def __init__ (self , coordinator : ActronAirSystemCoordinator ) -> None :
9392 """Initialize the sensor."""
@@ -104,7 +103,6 @@ class AirconDefrostModeSensor(BaseAirconSensor):
104103 """Representation of an Actron Air defrost mode sensor."""
105104
106105 _attr_translation_key = "defrost_mode"
107- _attr_device_class = SensorDeviceClass .ENUM
108106 _attr_entity_registry_enabled_default = False
109107
110108 def __init__ (self , coordinator : ActronAirSystemCoordinator ) -> None :
@@ -164,7 +162,6 @@ class AirconCompressorModeSensor(BaseAirconSensor):
164162 """Representation of an Actron Air compressor mode sensor."""
165163
166164 _attr_translation_key = "compressor_mode"
167- _attr_device_class = SensorDeviceClass .ENUM
168165 _attr_entity_registry_enabled_default = False
169166
170167 def __init__ (self , coordinator : ActronAirSystemCoordinator ) -> None :
@@ -274,6 +271,7 @@ class PeripheralBatterySensor(BasePeripheralSensor):
274271
275272 _attr_device_class = SensorDeviceClass .BATTERY
276273 _attr_native_unit_of_measurement = PERCENTAGE
274+ _attr_state_class = SensorStateClass .MEASUREMENT
277275
278276 def __init__ (
279277 self , coordinator : ActronAirSystemCoordinator , peripheral : ActronAirPeripheral
@@ -293,6 +291,7 @@ class PeripheralHumiditySensor(BasePeripheralSensor):
293291
294292 _attr_device_class = SensorDeviceClass .HUMIDITY
295293 _attr_native_unit_of_measurement = PERCENTAGE
294+ _attr_state_class = SensorStateClass .MEASUREMENT
296295
297296 def __init__ (
298297 self , coordinator : ActronAirSystemCoordinator , peripheral : ActronAirPeripheral
@@ -312,6 +311,7 @@ class PeripheralTemperatureSensor(BasePeripheralSensor):
312311
313312 _attr_device_class = SensorDeviceClass .TEMPERATURE
314313 _attr_native_unit_of_measurement = UnitOfTemperature .CELSIUS
314+ _attr_state_class = SensorStateClass .MEASUREMENT
315315
316316 def __init__ (
317317 self , coordinator : ActronAirSystemCoordinator , peripheral : ActronAirPeripheral
0 commit comments