nikshriv / hass_navien_water_heater

Home Assistant custom component for Navien water heaters using NaviLink
40 stars 14 forks source link

Using deprecated constants as of 2024.1 #31

Open bakerkj opened 4 months ago

bakerkj commented 4 months ago

As of 2024.1 constants that this integration is using are deprecated. It would be great to use the constants in their new locations.

[homeassistant.components.water_heater] SUPPORT_AWAY_MODE was used from navien_water_heater, this is a deprecated constant which will be removed in HA Core 2025.1. Use WaterHeaterEntityFeature.AWAY_MODE instead, please report it to the author of the 'navien_water_
heater' custom integration
[homeassistant.components.water_heater] SUPPORT_TARGET_TEMPERATURE was used from navien_water_heater, this is a deprecated constant which will be removed in HA Core 2025.1. Use WaterHeaterEntityFeature.TARGET_TEMPERATURE instead, please report it to the author of 
the 'navien_water_heater' custom integration
[homeassistant.components.water_heater] SUPPORT_OPERATION_MODE was used from navien_water_heater, this is a deprecated constant which will be removed in HA Core 2025.1. Use WaterHeaterEntityFeature.OPERATION_MODE instead, please report it to the author of the 'nav
ien_water_heater' custom integration
[homeassistant.components.water_heater] SUPPORT_AWAY_MODE was used from navien_water_heater, this is a deprecated constant which will be removed in HA Core 2025.1. Use WaterHeaterEntityFeature.AWAY_MODE instead, please report it to the author of the 'navien_water_
heater' custom integration
[homeassistant.components.water_heater] SUPPORT_TARGET_TEMPERATURE was used from navien_water_heater, this is a deprecated constant which will be removed in HA Core 2025.1. Use WaterHeaterEntityFeature.TARGET_TEMPERATURE instead, please report it to the author of 
the 'navien_water_heater' custom integration
[homeassistant.components.water_heater] SUPPORT_OPERATION_MODE was used from navien_water_heater, this is a deprecated constant which will be removed in HA Core 2025.1. Use WaterHeaterEntityFeature.OPERATION_MODE instead, please report it to the author of the 'nav
ien_water_heater' custom integration
[homeassistant.const] VOLUME_CUBIC_METERS was used from navien_water_heater, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfVolume.CUBIC_METERS instead, please report it to the author of the 'navien_water_heater' custom integratio
n
[homeassistant.const] VOLUME_CUBIC_FEET was used from navien_water_heater, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfVolume.CUBIC_FEET instead, please report it to the author of the 'navien_water_heater' custom integration
[homeassistant.const] POWER_BTU_PER_HOUR was used from navien_water_heater, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.BTU_PER_HOUR instead, please report it to the author of the 'navien_water_heater' custom integration

Thanks!

bakerkj commented 4 months ago

@nikshriv I believe I've fixed this in #33. Could you review that?