mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 02:37:50 +00:00
Use new SensorDeviceClass in aqualogic (#61272)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
ce59ed2a5e
commit
9c11bb8ba1
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user