mirror of
https://github.com/home-assistant/core.git
synced 2025-07-05 12:27:07 +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 (
|
from homeassistant.components.sensor import (
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
|
SensorDeviceClass,
|
||||||
SensorEntity,
|
SensorEntity,
|
||||||
SensorEntityDescription,
|
SensorEntityDescription,
|
||||||
)
|
)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_MONITORED_CONDITIONS,
|
CONF_MONITORED_CONDITIONS,
|
||||||
DEVICE_CLASS_TEMPERATURE,
|
|
||||||
PERCENTAGE,
|
PERCENTAGE,
|
||||||
POWER_WATT,
|
POWER_WATT,
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
@ -39,7 +39,7 @@ SENSOR_TYPES: tuple[AquaLogicSensorEntityDescription, ...] = (
|
|||||||
name="Air Temperature",
|
name="Air Temperature",
|
||||||
unit_metric=TEMP_CELSIUS,
|
unit_metric=TEMP_CELSIUS,
|
||||||
unit_imperial=TEMP_FAHRENHEIT,
|
unit_imperial=TEMP_FAHRENHEIT,
|
||||||
device_class=DEVICE_CLASS_TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
AquaLogicSensorEntityDescription(
|
AquaLogicSensorEntityDescription(
|
||||||
key="pool_temp",
|
key="pool_temp",
|
||||||
@ -47,7 +47,7 @@ SENSOR_TYPES: tuple[AquaLogicSensorEntityDescription, ...] = (
|
|||||||
unit_metric=TEMP_CELSIUS,
|
unit_metric=TEMP_CELSIUS,
|
||||||
unit_imperial=TEMP_FAHRENHEIT,
|
unit_imperial=TEMP_FAHRENHEIT,
|
||||||
icon="mdi:oil-temperature",
|
icon="mdi:oil-temperature",
|
||||||
device_class=DEVICE_CLASS_TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
AquaLogicSensorEntityDescription(
|
AquaLogicSensorEntityDescription(
|
||||||
key="spa_temp",
|
key="spa_temp",
|
||||||
@ -55,7 +55,7 @@ SENSOR_TYPES: tuple[AquaLogicSensorEntityDescription, ...] = (
|
|||||||
unit_metric=TEMP_CELSIUS,
|
unit_metric=TEMP_CELSIUS,
|
||||||
unit_imperial=TEMP_FAHRENHEIT,
|
unit_imperial=TEMP_FAHRENHEIT,
|
||||||
icon="mdi:oil-temperature",
|
icon="mdi:oil-temperature",
|
||||||
device_class=DEVICE_CLASS_TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
AquaLogicSensorEntityDescription(
|
AquaLogicSensorEntityDescription(
|
||||||
key="pool_chlorinator",
|
key="pool_chlorinator",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user