Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Midea Dehumidifier LAN Integration broken with upgrade to Core 2024.1 #107018

Closed
raschinkel opened this issue Jan 3, 2024 · 1 comment · Fixed by #107026
Closed

Midea Dehumidifier LAN Integration broken with upgrade to Core 2024.1 #107018

raschinkel opened this issue Jan 3, 2024 · 1 comment · Fixed by #107026

Comments

@raschinkel
Copy link

The problem

The Midea Dehumidifier Lan integration function seems to be broken since the upgrade to Core 2024.1. The entity error is: "This entity is no longer being provided by the midea_dehumidifier_lan integration. If the entity is no longer in use, delete it in settings."

What version of Home Assistant Core has the issue?

2024.1

What was the last working version of Home Assistant Core?

2023.12.1

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Midea Dehumidifier Lan

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1520
First occurred: 5:51:05 PM (6 occurrences)
Last logged: 5:57:02 PM

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
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

Logger: homeassistant.components.humidifier
Source: helpers/entity_platform.py:507
Integration: Humidifier (documentation, issues)
First occurred: 5:51:05 PM (3 occurrences)
Last logged: 5:57:02 PM

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

Additional information

No response

@raschinkel
Copy link
Author

That's great......working again now. Thanks very much, appreciate your efforts. Cheers.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant