georgezhao2010 / midea_ac_lan

Auto-configure and then control your Midea M-Smart devices (Air conditioner, Fan, Water heater, Washer, etc) via local area network.
MIT License
1.42k stars 233 forks source link

DEVICE_CLASS_HUMIDIFIER was used from midea_ac_lan, this is a deprecated constant which will be removed in HA Core 2025.1 #480

Open aredon opened 7 months ago

aredon commented 7 months ago

HA core version

2024.3.3

Intergration version

0.3.18

Device type and model

Midea Cube

Used App

I loaded it in multiple and don't recall.

The description of problem

Logger: homeassistant.components.humidifier.const Source: helpers/deprecation.py:205 integration: Humidifier (documentation, issues) First occurred: 9:19:26 AM (3 occurrences) Last logged: 9:19:26 AM

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 create a bug report at https://github.com/georgezhao2010/midea_ac_lan/issues 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 create a bug report at https://github.com/georgezhao2010/midea_ac_lan/issues 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 create a bug report at https://github.com/georgezhao2010/midea_ac_lan/issues

The logs

No response

rokam commented 7 months ago

420 should fix this

CyrielRct commented 7 months ago

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 :

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

sanderlv commented 6 months ago

Hi @georgezhao2010 any option to merge this in yours? please?

rokam commented 6 months ago

This repo is abandoned.

sanderlv commented 6 months ago

Thats not good, whats the succesor?

rokam commented 6 months ago

https://github.com/wuwentao/midea_ac_lan

sanderlv commented 6 months ago

That's not the one coming up in HACS...

EDIT, it comes up now.

But this needs a complete rework of all devices :-(

rokam commented 6 months ago

Remove the old one first then add the new integration

sanderlv commented 6 months ago

Fixed it. But removing is not possible without removing all devices first.