Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Update const.py
Browse files Browse the repository at this point in the history
deprication warning with 2024.1 for several constants
  • Loading branch information
ChristophCaina authored Dec 31, 2023
1 parent d1592f2 commit d150872
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions custom_components/daikin_residential_altherma/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
CONF_NAME,
CONF_TYPE,
CONF_UNIT_OF_MEASUREMENT,
DEVICE_CLASS_TEMPERATURE,
DEVICE_CLASS_ENERGY,
DEVICE_CLASS_SIGNAL_STRENGTH,
ENERGY_KILO_WATT_HOUR,
TEMP_CELSIUS,
SensorDeviceClass,
UnitOfEnergy,
UnitOfTemperature,
PERCENTAGE,
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,

)

DOMAIN = "daikin_residential_altherma"
Expand Down Expand Up @@ -190,62 +189,62 @@
ATTR_LEAVINGWATER_TEMPERATURE: {
CONF_NAME: "Leaving Water Temperature",
CONF_TYPE: SENSOR_TYPE_TEMPERATURE,
CONF_DEVICE_CLASS: DEVICE_CLASS_TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
CONF_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: UnitOfTemperature.CELSIUS,
},
ATTR_OUTSIDE_TEMPERATURE: {
CONF_NAME: "Outside Temperature",
CONF_TYPE: SENSOR_TYPE_TEMPERATURE,
CONF_DEVICE_CLASS: DEVICE_CLASS_TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
CONF_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: UnitOfTemperature.CELSIUS,
},
ATTR_ROOM_TEMPERATURE: {
CONF_NAME: "Room Temperature",
CONF_TYPE: SENSOR_TYPE_TEMPERATURE,
CONF_DEVICE_CLASS: DEVICE_CLASS_TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
CONF_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: UnitOfTemperature.CELSIUS,
},
ATTR_LEAVINGWATER_OFFSET: {
CONF_NAME: "Leaving Water Offset",
CONF_TYPE: SENSOR_TYPE_TEMPERATURE,
CONF_ICON: "mdi:cursor-pointer",
CONF_DEVICE_CLASS: DEVICE_CLASS_TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
CONF_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: UnitOfTemperature.CELSIUS,
},
ATTR_TANK_TEMPERATURE: {
CONF_NAME: "Tank Temperature",
CONF_TYPE: SENSOR_TYPE_TEMPERATURE,
CONF_ICON: "mdi:bathtub-outline",
CONF_DEVICE_CLASS: DEVICE_CLASS_TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
CONF_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: UnitOfTemperature.CELSIUS,
},
ATTR_TANK_TARGET_TEMPERATURE: {
CONF_NAME: "Tank Target tempeature",
CONF_TYPE: SENSOR_TYPE_TEMPERATURE,
CONF_ICON: "mdi:bathtub-outline",
CONF_DEVICE_CLASS: DEVICE_CLASS_TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
CONF_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
CONF_UNIT_OF_MEASUREMENT: UnitOfTemperature.CELSIUS,
},
ATTR_COOL_ENERGY: {
CONF_NAME: "Cool Energy Consumption",
CONF_TYPE: SENSOR_TYPE_ENERGY,
CONF_ICON: "mdi:snowflake",
CONF_DEVICE_CLASS: DEVICE_CLASS_ENERGY,
CONF_UNIT_OF_MEASUREMENT: ENERGY_KILO_WATT_HOUR,
CONF_DEVICE_CLASS: SensorDeviceClass.ENERGY,
CONF_UNIT_OF_MEASUREMENT: UnitOfEnergy.KILO_WATT_HOUR,
},
ATTR_HEAT_ENERGY: {
CONF_NAME: "Heat Energy Consumption",
CONF_TYPE: SENSOR_TYPE_ENERGY,
CONF_ICON: "mdi:fire",
CONF_DEVICE_CLASS: DEVICE_CLASS_ENERGY,
CONF_UNIT_OF_MEASUREMENT: ENERGY_KILO_WATT_HOUR,
CONF_DEVICE_CLASS: SensorDeviceClass.ENERGY,
CONF_UNIT_OF_MEASUREMENT: UnitOfEnergy.KILO_WATT_HOUR,
},
ATTR_HEAT_TANK_ENERGY: {
CONF_NAME: "Heat Tank Energy Consumption",
CONF_TYPE: SENSOR_TYPE_ENERGY,
CONF_ICON: "mdi:bathtub-outline",
CONF_DEVICE_CLASS: DEVICE_CLASS_ENERGY,
CONF_UNIT_OF_MEASUREMENT: ENERGY_KILO_WATT_HOUR,
CONF_DEVICE_CLASS: SensorDeviceClass.ENERGY,
CONF_UNIT_OF_MEASUREMENT: UnitOfEnergy.KILO_WATT_HOUR,
},
ATTR_OPERATION_MODE: {
CONF_NAME: "Operation Mode",
Expand Down Expand Up @@ -364,7 +363,7 @@
ATTR_WIFI_STRENGTH: {
CONF_NAME: "WiFi Strength",
CONF_TYPE: SENSOR_TYPE_GATEWAY_DIAGNOSTIC,
CONF_DEVICE_CLASS: DEVICE_CLASS_SIGNAL_STRENGTH,
CONF_DEVICE_CLASS: SensorDeviceClass.SIGNAL_STRENGTH,
CONF_UNIT_OF_MEASUREMENT: SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
},
ATTR_WIFI_SSID: {
Expand Down

0 comments on commit d150872

Please sign in to comment.