diff --git a/homeassistant/components/aranet/sensor.py b/homeassistant/components/aranet/sensor.py index 3487f68c67d0..cbe3113439f0 100644 --- a/homeassistant/components/aranet/sensor.py +++ b/homeassistant/components/aranet/sensor.py @@ -23,10 +23,9 @@ from homeassistant.const import ( ATTR_MODEL, ATTR_NAME, ATTR_SW_VERSION, - CONCENTRATION_PARTS_PER_MILLION, - PERCENTAGE, EntityCategory, UnitOfPressure, + UnitOfRatio, UnitOfTemperature, UnitOfTime, ) @@ -62,7 +61,7 @@ SENSOR_DESCRIPTIONS = { key="humidity", name="Humidity", device_class=SensorDeviceClass.HUMIDITY, - native_unit_of_measurement=PERCENTAGE, + native_unit_of_measurement=UnitOfRatio.PERCENTAGE, state_class=SensorStateClass.MEASUREMENT, ), "pressure": AranetSensorEntityDescription( @@ -83,7 +82,7 @@ SENSOR_DESCRIPTIONS = { key="co2", name="Carbon Dioxide", device_class=SensorDeviceClass.CO2, - native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION, + native_unit_of_measurement=UnitOfRatio.PARTS_PER_MILLION, state_class=SensorStateClass.MEASUREMENT, ), "radiation_rate": AranetSensorEntityDescription( @@ -115,7 +114,7 @@ SENSOR_DESCRIPTIONS = { key="battery", name="Battery", device_class=SensorDeviceClass.BATTERY, - native_unit_of_measurement=PERCENTAGE, + native_unit_of_measurement=UnitOfRatio.PERCENTAGE, state_class=SensorStateClass.MEASUREMENT, entity_category=EntityCategory.DIAGNOSTIC, ),