midea_ac_lan icon indicating copy to clipboard operation
midea_ac_lan copied to clipboard

Is_Aux_Heat property not compatible with HA

Open coenieolivier opened this issue 10 months ago • 1 comments

HA core version

2024 4.1

Intergration version

v0.3.22

Device type and model

Air Conditioner 00000Q1D (8) by Midea

Used App

Home Assistant

The description of problem

This stops working in version 2024.10.0. Please address before upgrading.

The custom integration midea_ac_lan implements the is_aux_heat property or uses the auxiliary heater methods in a subclass of ClimateEntity.

Once an updated version of midea_ac_lan is available, install it and restart Home Assistant to fix this issue.

The logs

Logger: homeassistant.helpers.entity Source: helpers/entity.py:1607 First occurred: 11:51:46 PM (1 occurrences) Last logged: 11:51:46 PM

Entity midea_ac_lan.150633093400591_fresh_air (<class 'custom_components.midea_ac_lan.fan.MideaACFreshAirFan'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <FanEntityFeature.SET_SPEED|PRESET_MODE: 9>, please create a bug report at https://github.com/georgezhao2010/midea_ac_lan/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

Logger: homeassistant.components.humidifier.const Source: helpers/deprecation.py:206 integration: Humidifier (documentation, issues) First occurred: 11:51:46 PM (3 occurrences) Last logged: 11:51:46 PM

DEVICE_CLASS_HUMIDIFIER was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use HumidifierDeviceClass.HUMIDIFIER instead, please report it to the author of the 'midea_ac_lan' custom integration DEVICE_CLASS_DEHUMIDIFIER was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use HumidifierDeviceClass.DEHUMIDIFIER instead, please report it to the author of the 'midea_ac_lan' custom integration SUPPORT_MODES was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use HumidifierEntityFeature.MODES instead, please report it to the author of the 'midea_ac_lan' custom integration

Log details (WARNING) Logger: homeassistant.components.climate Source: components/climate/init.py:419 integration: Climate (documentation, issues) First occurred: 11:51:46 PM (1 occurrences) Last logged: 11:51:46 PM

midea_ac_lan::MideaACClimate implements the is_aux_heat property or uses the auxiliary heater methods in a subclass of ClimateEntity which is deprecated and will be unsupported from Home Assistant 2024.10. Please create a bug report at https://github.com/georgezhao2010/midea_ac_lan/issues

Log details (WARNING) Logger: homeassistant.components.climate Source: components/climate/init.py:367 integration: Climate (documentation, issues) First occurred: 11:51:46 PM (3 occurrences) Last logged: 11:51:46 PM

Entity midea_ac_lan.150633093400591_climate (<class 'custom_components.midea_ac_lan.climate.MideaACClimate'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/georgezhao2010/midea_ac_lan/issues Entity midea_ac_lan.150633093400591_climate (<class 'custom_components.midea_ac_lan.climate.MideaACClimate'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/georgezhao2010/midea_ac_lan/issues Entity midea_ac_lan.150633093400591_climate (<class 'custom_components.midea_ac_lan.climate.MideaACClimate'>) implements HVACMode(s): off, auto, cool, dry, heat, fan_only and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/georgezhao2010/midea_ac_lan/issues

Log details (WARNING) Logger: homeassistant.components.fan Source: helpers/deprecation.py:206 integration: Fan (documentation, issues) First occurred: 11:51:45 PM (14 occurrences) Last logged: 11:51:46 PM

SUPPORT_SET_SPEED was used from localtuya, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.SET_SPEED instead, please report it to the author of the 'localtuya' custom integration SUPPORT_SET_SPEED was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.SET_SPEED instead, please report it to the author of the 'midea_ac_lan' custom integration SUPPORT_OSCILLATE was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.OSCILLATE instead, please report it to the author of the 'midea_ac_lan' custom integration SUPPORT_DIRECTION was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.DIRECTION instead, please report it to the author of the 'midea_ac_lan' custom integration SUPPORT_PRESET_MODE was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.PRESET_MODE instead, please report it to the author of the 'midea_ac_lan' custom integration

Log details (WARNING) Logger: homeassistant.const Source: helpers/deprecation.py:206 First occurred: 11:51:45 PM (12 occurrences) Last logged: 11:51:46 PM

TIME_SECONDS was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTime.SECONDS instead, please report it to the author of the 'midea_ac_lan' custom integration TEMP_CELSIUS was used from midea_ac_lan, 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 'midea_ac_lan' custom integration POWER_WATT was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead, please report it to the author of the 'midea_ac_lan' custom integration VOLUME_LITERS was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfVolume.LITERS instead, please report it to the author of the 'midea_ac_lan' custom integration ENERGY_KILO_WATT_HOUR was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please report it to the author of the 'midea_ac_lan' custom integration

Log details (WARNING) Logger: homeassistant.components.water_heater Source: helpers/deprecation.py:206 integration: Water Heater (documentation, issues) First occurred: April 5, 2024 at 11:51:46 PM (6 occurrences) Last logged: April 5, 2024 at 11:51:46 PM

SUPPORT_TARGET_TEMPERATURE was used from midea_ac_lan, 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 'midea_ac_lan' custom integration SUPPORT_OPERATION_MODE was used from midea_ac_lan, 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 'midea_ac_lan' custom integration SUPPORT_AWAY_MODE was used from midea_ac_lan, 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 'midea_ac_lan' custom integration

Log details (WARNING) Logger: homeassistant.components.sensor Source: components/sensor/init.py:575 integration: Sensor (documentation, issues) First occurred: April 5, 2024 at 11:51:46 PM (1 occurrences) Last logged: April 5, 2024 at 11:51:46 PM

Entity sensor.150633093400591_current_energy_consumption (<class 'custom_components.midea_ac_lan.sensor.MideaSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/georgezhao2010/midea_ac_lan/issues

Log details (WARNING) Logger: homeassistant.components.sensor Source: components/sensor/init.py:575 integration: Sensor (documentation, issues) First occurred: April 5, 2024 at 11:51:46 PM (1 occurrences) Last logged: April 5, 2024 at 11:51:46 PM

Entity sensor.150633093400591_current_energy_consumption (<class 'custom_components.midea_ac_lan.sensor.MideaSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/georgezhao2010/midea_ac_lan/issues

coenieolivier avatar Apr 05 '24 22:04 coenieolivier

If it help I just clone this repo and merge all pending PR fixing issues. This is only during the time the maintainer will merge following PR in this repository :

  • Fixed incorrect filename in config https://github.com/georgezhao2010/midea_ac_lan/pull/465
  • fix(climate): deprecate aux_heating feature https://github.com/georgezhao2010/midea_ac_lan/pull/486
  • Replaced deprecated constants and wildcard imports (HA >= 2023.1) https://github.com/georgezhao2010/midea_ac_lan/pull/420

Waiting this time you can re-install the integration using this repository : https://github.com/CyrielRct/midea_ac_lan

To do that go to HACS - Integration - and add the repository. It will show you version 0.3.24

CyrielRct avatar Apr 13 '24 17:04 CyrielRct