diff --git a/homeassistant/components/apcupsd/sensor.py b/homeassistant/components/apcupsd/sensor.py index 6f3b83a4867..faa1f5a09e2 100644 --- a/homeassistant/components/apcupsd/sensor.py +++ b/homeassistant/components/apcupsd/sensor.py @@ -8,12 +8,12 @@ import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA, + SensorDeviceClass, SensorEntity, SensorEntityDescription, ) from homeassistant.const import ( CONF_RESOURCES, - DEVICE_CLASS_TEMPERATURE, ELECTRIC_CURRENT_AMPERE, ELECTRIC_POTENTIAL_VOLT, FREQUENCY_HERTZ, @@ -155,7 +155,7 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( key="itemp", name="Internal Temperature", native_unit_of_measurement=TEMP_CELSIUS, - device_class=DEVICE_CLASS_TEMPERATURE, + device_class=SensorDeviceClass.TEMPERATURE, ), SensorEntityDescription( key="lastxfer",