nbogojevic / homeassistant-midea-air-appliances-lan

This Home Assistant custom component adding support for controlling Midea air conditioners and dehumidifiers on local network.
MIT License
273 stars 29 forks source link

Integration stopped working with 2024.1 #130

Closed SmartHomeFanatic closed 5 months ago

SmartHomeFanatic commented 6 months ago

Version of the custom_component

v0.8.13

Logs


Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 368, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1277, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 181, in async_added_to_hass
    self.on_online(True)
  File "/config/custom_components/midea_dehumidifier_lan/humidifier.py", line 97, in on_online
    super().on_online(update)
  File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 238, in on_online
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1062, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1001, in __async_calculate_state
    attr.update(self.state_attributes or {})
                ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/humidifier/__init__.py", line 217, in state_attributes
    if HumidifierEntityFeature.MODES in self.supported_features:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable

Describe the bug

Dehumidifier is unavailable after the update. Already restartet the appliance, reloaded the integration and restarted HA wihtout success.

Debug log



Add your logs here.

```2024-01-03 22:47:21.513 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.hub] Created coordinator for {'api_version': 3, 'id': '14623504656****', 'ip_address': '192.168.179.96', 'name': 'Dehumidifier', 'token_key': '****************************************************************', 'token': '********************************************************************************************************************************', 'type': '0xa1', 'unique_id': '000000P0000000Q1C43960B5********', 'discovery': 'LAN'}
2024-01-03 22:47:21.769 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Finished fetching Dehumidifier data in 0.255 seconds (success: True)
2024-01-03 22:47:21.769 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_discovery] Starting periodic discovery with interval 15 minute(s), broadcast ['255.255.255.255'], configured []
2024-01-03 22:47:21.798 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_FAN_MODE was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.FAN_MODE instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
2024-01-03 22:47:21.803 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_PRESET_MODE was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.PRESET_MODE instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
2024-01-03 22:47:21.807 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_SWING_MODE was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.SWING_MODE instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
2024-01-03 22:47:21.812 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_TARGET_TEMPERATURE was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
2024-01-03 22:47:21.816 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
2024-01-03 22:47:21.821 WARNING (MainThread) [homeassistant.components.fan] SUPPORT_PRESET_MODE was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.PRESET_MODE instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
2024-01-03 22:47:21.825 WARNING (MainThread) [homeassistant.components.fan] SUPPORT_PRESET_MODE was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.PRESET_MODE instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
2024-01-03 22:47:21.829 WARNING (MainThread) [homeassistant.components.humidifier.const] SUPPORT_MODES was used from midea_dehumidifier_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/nbogojevic/homeassistant-midea-air-appliances-lan/issues
2024-01-03 22:47:21.832 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
2024-01-03 22:47:21.888 WARNING (MainThread) [homeassistant.components.light] Entity None (<class 'custom_components.cololight.light.coloLight'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature.EFFECT|17: 21> and color modes, please create a bug report at https://github.com/BazaJayGee66/homeassistant_cololight/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-03 22:47:22.098 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.midea_dehumidifier_lan.fan.DehumidiferFan'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <FanEntityFeature.PRESET_MODE: 8>, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-03 22:47:22.099 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.midea_dehumidifier_lan.humidifier.DehumidifierEntity'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <HumidifierEntityFeature.MODES: 1>, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-03 22:47:22.105 ERROR (MainThread) [homeassistant.components.humidifier] Error adding entities for domain humidifier with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1277, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 181, in async_added_to_hass
    self.on_online(True)
  File "/config/custom_components/midea_dehumidifier_lan/humidifier.py", line 97, in on_online
    super().on_online(update)
  File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 238, in on_online
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1062, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1001, in __async_calculate_state
    attr.update(self.state_attributes or {})
                ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/humidifier/__init__.py", line 217, in state_attributes
    if HumidifierEntityFeature.MODES in self.supported_features:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable
2024-01-03 22:47:22.115 ERROR (MainThread) [homeassistant.components.humidifier] Error while setting up midea_dehumidifier_lan platform for humidifier
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 368, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1277, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 181, in async_added_to_hass
    self.on_online(True)
  File "/config/custom_components/midea_dehumidifier_lan/humidifier.py", line 97, in on_online
    super().on_online(update)
  File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 238, in on_online
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1062, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1001, in __async_calculate_state
    attr.update(self.state_attributes or {})
                ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/humidifier/__init__.py", line 217, in state_attributes
    if HumidifierEntityFeature.MODES in self.supported_features:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable
HVPereira commented 6 months ago

I confirm the behaviour the same happened to me too...

kwbeck commented 6 months ago

I see the same errors as well

MVB1989 commented 6 months ago

And the same thing happens to me

drzoidberg33 commented 6 months ago

These deprecated constants are now unsupported from 2024.1: https://developers.home-assistant.io/blog/2022/04/02/support-constants-deprecation/

I've fixed the issue for my dehumidifier but not sure about other devices: https://github.com/drzoidberg33/homeassistant-midea-air-appliances-lan/commit/ea7fb21a9202b275e1dc20ce3be891153e5df2cf

jpleite commented 6 months ago

@drzoidberg33 how did you fix temporarily?

drzoidberg33 commented 6 months ago

@drzoidberg33 how did you fix temporarily?

I just used the Studio Code addon and edited it directly for now, you'll find the file under custom_components -> midea_dehumidifier_lan and check the changes in my commit above. Then restart HA.

SmartHomeFanatic commented 6 months ago

These deprecated constants are now unsupported from 2024.1: https://developers.home-assistant.io/blog/2022/04/02/support-constants-deprecation/

I've fixed the issue for my dehumidifier but not sure about other devices: drzoidberg33@ea7fb21

You are the man! That fixed it for me. Thanks!

jpleite commented 6 months ago

@drzoidberg33 how did you fix temporarily?

I just used the Studio Code addon and edited it directly for now, you'll find the file under custom_components -> midea_dehumidifier_lan and check the changes in my commit above. Then restart HA.

Thank you.

aperezva commented 6 months ago

Thanks @drzoidberg33 , do you know if this integrtiuon is still on mantenance, and this solution is only temporarily?

I stil not updated to 2024..1 and I don´t know if we will have a new integration version in the next dayss, or it will take a long time.

fotis3d commented 6 months ago

I second that. My problem is solved for now with the solution @drzoidberg33 offered for my Invertor EVA II WIFI PRO.

PskNorz commented 6 months ago

@drzoidberg33 it is possible to fix all the other errors?

pasch82-code commented 6 months ago

it seems like you replace only SUPPORT_MODES

https://developers.home-assistant.io/blog/2022/04/02/support-constants-deprecation/ Also this constants are used by the code (should be replaced, too?) SUPPORT_FAN_MODE, SUPPORT_PRESET_MODE, SUPPORT_SWING_MODE, SUPPORT_TARGET_TEMPERATURE,

drzoidberg33 commented 6 months ago

Thanks @drzoidberg33 , do you know if this integrtiuon is still on mantenance, and this solution is only temporarily?

I stil not updated to 2024..1 and I don´t know if we will have a new integration version in the next dayss, or it will take a long time.

I'll see if I get time to fix the other consts and submit a PR, I'm not sure if anyone is maintaining this repo anymore to merge the PR though.

manant74 commented 6 months ago

In my Hassio, I replaced all deprecated constatnts, but I have the same error when I add my Midea Humidifier to Home Assistant

Do you have similar problems?

razzer05 commented 6 months ago

Same error will have to look into the visual code add on and the submission above to temp fix myself. Cheers person with solution above.. sorry on my phone and can’t see your name while typing..

Khayrisill commented 6 months ago

Opened a pull request, to modify the constants. https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/pull/132

You can try replacing climate.py, fan.py and humidifier.py. Works on my side with the dehumidifier.

manant74 commented 6 months ago

The replacement of constants works if you have configured the device before the update to 2024.1. If you try to configure a new Midea device, you receive an error in the cloud login processes

Khayrisill commented 6 months ago

The replacement of constants works if you have configured the device before the update to 2024.1. If you try to configure a new Midea device, you receive an error in the cloud login processes

It's true my device was already configured. I didn't try to add a new one. If this is the case, it looks like another issue.

ynsgnr commented 6 months ago

https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/pull/132 fixed the issue for me, my device was already configured

johnnymnemonic84 commented 6 months ago

If you removed the device you can get it to work downgrading HA, then installing the integration via HACS but editing cloud.py like described in https://github.com/nbogojevic/midea-beautiful-air/issues/26 I had also to reinstall Midea Air who got me to new app MSmartHome where I reconfigured the device I think I can now upgrade to 2024.1 editing the 3 files climate.py, fan.py and humidifier.py.

PskNorz commented 6 months ago

https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/pull/132 Remove most of the erros but still getting one more.

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 20:26:11 (2 occurrences)
Last logged: 20:26:11

TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
Khayrisill commented 6 months ago

132 Remove most of the erros but still getting one more.

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 20:26:11 (2 occurrences)
Last logged: 20:26:11

TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues

I updated climate.py https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/pull/132/commits/6750b4c90636210f7dd03043490ee1acec50763b. with the new UnitOfTemperature.CELSIUS . Please test with the new one.

PskNorz commented 6 months ago

132 Remove most of the erros but still getting one more.

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 20:26:11 (2 occurrences)
Last logged: 20:26:11

TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues

I updated climate.py 6750b4c. with the new UnitOfTemperature.CELSIUS . Please test with the new one.

Doesnt work, it broke the integration,

Logger: homeassistant.loader
Source: loader.py:842
First occurred: 21:54:37 (1 occurrences)
Last logged: 21:54:37

Unexpected exception importing platform custom_components.midea_dehumidifier_lan.climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 842, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 859, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/midea_dehumidifier_lan/climate.py", line 118, in <module>
    class AirConditionerEntity(ApplianceEntity, ClimateEntity):
  File "/config/custom_components/midea_dehumidifier_lan/climate.py", line 128, in AirConditionerEntity
    _attr_temperature_unit = UnitOfTemperature.CELSIUS
                             ^^^^^^^^^^^^^^^^^
NameError: name 'UnitOfTemperature' is not defined
Logger: homeassistant.setup
Source: setup.py:403
First occurred: 21:54:37 (1 occurrences)
Last logged: 21:54:37

Unable to prepare setup for platform 'midea_dehumidifier_lan.climate': Platform not found (Exception importing custom_components.midea_dehumidifier_lan.climate).
Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 21:54:37 (2 occurrences)
Last logged: 21:54:37

TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
Khayrisill commented 6 months ago

132 Remove most of the erros but still getting one more.

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 20:26:11 (2 occurrences)
Last logged: 20:26:11

TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues

I updated climate.py 6750b4c. with the new UnitOfTemperature.CELSIUS . Please test with the new one.

Doesnt work, it broke the integration,

Logger: homeassistant.loader
Source: loader.py:842
First occurred: 21:54:37 (1 occurrences)
Last logged: 21:54:37

Unexpected exception importing platform custom_components.midea_dehumidifier_lan.climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 842, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 859, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/midea_dehumidifier_lan/climate.py", line 118, in <module>
    class AirConditionerEntity(ApplianceEntity, ClimateEntity):
  File "/config/custom_components/midea_dehumidifier_lan/climate.py", line 128, in AirConditionerEntity
    _attr_temperature_unit = UnitOfTemperature.CELSIUS
                             ^^^^^^^^^^^^^^^^^
NameError: name 'UnitOfTemperature' is not defined
Logger: homeassistant.setup
Source: setup.py:403
First occurred: 21:54:37 (1 occurrences)
Last logged: 21:54:37

Unable to prepare setup for platform 'midea_dehumidifier_lan.climate': Platform not found (Exception importing custom_components.midea_dehumidifier_lan.climate).
Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 21:54:37 (2 occurrences)
Last logged: 21:54:37

TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues

Syntax updated.

https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/pull/132/commits/b604f5795f59aaf20b3f8c2e71009ee469d4fab1

PskNorz commented 6 months ago

Fix all the errors, expect this one below

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 23:11:21 (1 occurrences)
Last logged: 23:11:21

TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
Khayrisill commented 6 months ago

Fix all the errors, expect this one below

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 23:11:21 (1 occurrences)
Last logged: 23:11:21

TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues

Please, try with the last one above.

PskNorz commented 6 months ago

Fix all the errors, expect this one below

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 23:11:21 (1 occurrences)
Last logged: 23:11:21

TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues

Please, try with the last one above.

I did try it. Fix 6750b4c combined with https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/commit/b604f5795f59aaf20b3f8c2e71009ee469d4fab1

Fix all the erros expect the last error that i post.

Khayrisill commented 6 months ago

Fix all the errors, expect this one below

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 23:11:21 (1 occurrences)
Last logged: 23:11:21

TEMP_CELSIUS was used from midea_dehumidifier_lan, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues

Please, try with the last one above.

I did try it. Fix 6750b4c combined with b604f57

Fix all the erros expect the last error that i post.

There is no more TEMP_CELSIUS in the last climate.py , I get no error when I run it on my setup.

PskNorz commented 6 months ago

I tried the search on Vscode, i found temp_celsius on sensor.py

Khayrisill commented 6 months ago

I tried the search on Vscode, i found temp_celsius on sensor.py

You right ! there is some constants in sensor.py that have to be updated too. I'll updated it.

Khayrisill commented 6 months ago

Update of sensor.py

d0e7412

PskNorz commented 6 months ago

Error - > None! Thank you, you are awesome!

YpNo commented 6 months ago

Hi All,

Same issue here. It works with those MR applied #132 and https://github.com/nbogojevic/midea-beautiful-air/pull/29 !

Please, release it ;)

HVPereira commented 6 months ago

Yes,

I agree it works it should be released! :)

nbogojevic commented 5 months ago

New version 0.9.0 has been released.