RobHofmann / HomeAssistant-GreeClimateComponent

Custom Gree climate component written in Python3 for Home Assistant. Controls AC's supporting the Gree protocol.
GNU General Public License v3.0
309 stars 104 forks source link

Notice of removals - HASS 2025.1.X+ #150

Closed larivierec closed 8 months ago

larivierec commented 8 months ago

Describe the bug As of Home Assistant 2024.1.0, some constants have become deprecated and will be removed in 2025+

To Reproduce Steps to reproduce the behavior:

  1. Install HASS 2024.1.0
  2. Install HACS with Gree component
  3. Add a gree and restart HASS
  4. View a list of warnings

Expected behavior There should not be any warnings of deprecations.

Screenshots If applicable, add screenshots to help explain your problem.

Platform:

Additional context Add any other context about the problem here.

Logs

33m2024-01-03 21:10:41.102 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_OFF was used from gree, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.OFF instead, please report it to the author of the 'gree' custom integration

2024-01-03 21:10:41.104 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_AUTO was used from gree, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.AUTO instead, please report it to the author of the 'gree' custom integration

2024-01-03 21:10:41.105 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_COOL was used from gree, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.COOL instead, please report it to the author of the 'gree' custom integration

2024-01-03 21:10:41.106 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_DRY was used from gree, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.DRY instead, please report it to the author of the 'gree' custom integration

2024-01-03 21:10:41.107 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_FAN_ONLY was used from gree, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.FAN_ONLY instead, please report it to the author of the 'gree' custom integration

2024-01-03 21:10:41.109 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT was used from gree, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.HEAT instead, please report it to the author of the 'gree' custom integration

2024-01-03 21:10:41.110 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_FAN_MODE was used from gree, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.FAN_MODE instead, please report it to the author of the 'gree' custom integration

2024-01-03 21:10:41.111 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_TARGET_TEMPERATURE was used from gree, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please report it to the author of the 'gree' custom integration

2024-01-03 21:10:41.112 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_SWING_MODE was used from gree, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.SWING_MODE instead, please report it to the author of the 'gree' custom integration

2024-01-03 21:10:41.114 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from gree, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'gree' custom integration

2024-01-03 21:10:41.916 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.gree.climate.GreeClimate'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE|FAN_MODE|SWING_MODE: 41>, please report it to the author of the 'gree' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
RobHofmann commented 8 months ago

Thank you for reporting! Just released a new version with a fix for this: https://github.com/RobHofmann/HomeAssistant-GreeClimateComponent/releases/tag/2.6.0

larivierec commented 8 months ago

awesome, i'll test it out :) thanks!

EDIT: it works, no more warnings appear!

briakpal commented 6 months ago

Unfortunetly for me not working...