Use new SensorDeviceClass in aqualogic (#61272)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2021-12-08 21:21:49 +01:00 committed by GitHub
parent ce59ed2a5e
commit 9c11bb8ba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,12 +7,12 @@ import voluptuous as vol
from homeassistant.components.sensor import (
PLATFORM_SCHEMA,
SensorDeviceClass,
SensorEntity,
SensorEntityDescription,
)
from homeassistant.const import (
CONF_MONITORED_CONDITIONS,
DEVICE_CLASS_TEMPERATURE,
PERCENTAGE,
POWER_WATT,
TEMP_CELSIUS,
@ -39,7 +39,7 @@ SENSOR_TYPES: tuple[AquaLogicSensorEntityDescription, ...] = (
name="Air Temperature",
unit_metric=TEMP_CELSIUS,
unit_imperial=TEMP_FAHRENHEIT,
device_class=DEVICE_CLASS_TEMPERATURE,
device_class=SensorDeviceClass.TEMPERATURE,
),
AquaLogicSensorEntityDescription(
key="pool_temp",
@ -47,7 +47,7 @@ SENSOR_TYPES: tuple[AquaLogicSensorEntityDescription, ...] = (
unit_metric=TEMP_CELSIUS,
unit_imperial=TEMP_FAHRENHEIT,
icon="mdi:oil-temperature",
device_class=DEVICE_CLASS_TEMPERATURE,
device_class=SensorDeviceClass.TEMPERATURE,
),
AquaLogicSensorEntityDescription(
key="spa_temp",
@ -55,7 +55,7 @@ SENSOR_TYPES: tuple[AquaLogicSensorEntityDescription, ...] = (
unit_metric=TEMP_CELSIUS,
unit_imperial=TEMP_FAHRENHEIT,
icon="mdi:oil-temperature",
device_class=DEVICE_CLASS_TEMPERATURE,
device_class=SensorDeviceClass.TEMPERATURE,
),
AquaLogicSensorEntityDescription(
key="pool_chlorinator",