homeassistant-midea-air-appliances-lan icon indicating copy to clipboard operation
homeassistant-midea-air-appliances-lan copied to clipboard

Unable to Load component after HASSOS Update to 12.2

Open gianlucasullazzo opened this issue 10 months ago • 36 comments

Version of the custom_component

Configuration


Midea version: Release 0.9.2

Core: 2024.4.2
Supervisor: 2024.04.0
Operating System: 12.2
Frontend: 20240404.1

Describe the bug

After upgrading HASSOS to 12.2 the intgration is not loaded.

Debug log


Unexpected exception importing component custom_components.midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1037, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/midea_dehumidifier_lan/__init__.py", line 29, in <module>
    from midea_beautiful.cloud import MideaCloud
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/__init__.py", line 7, in <module>
    from midea_beautiful.lan import LanDevice, appliance_state
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/lan.py", line 13, in <module>
    from midea_beautiful.appliance import Appliance
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/appliance.py", line 8, in <module>
    from midea_beautiful.command import (
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/command.py", line 17, in <module>
    _order_lock = RLock()
                  ^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/context.py", line 73, in RLock
    return RLock(ctx=self.get_context())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 194, in __init__
    SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1, ctx=ctx)
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 57, in __init__
    sl = self._semlock = _multiprocessing.SemLock(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system

gianlucasullazzo avatar Apr 11 '24 14:04 gianlucasullazzo

Same issue for me after updating HAOS this morning. I'm seeing two errors in my log:

Logger: homeassistant.loader
Source: loader.py:1037
First occurred: 9:07:12 AM (2 occurrences)
Last logged: 9:07:12 AM

Unexpected exception importing component custom_components.midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1037, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/midea_dehumidifier_lan/__init__.py", line 29, in <module>
    from midea_beautiful.cloud import MideaCloud
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/__init__.py", line 7, in <module>
    from midea_beautiful.lan import LanDevice, appliance_state
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/lan.py", line 13, in <module>
    from midea_beautiful.appliance import Appliance
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/appliance.py", line 8, in <module>
    from midea_beautiful.command import (
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/command.py", line 17, in <module>
    _order_lock = RLock()
                  ^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/context.py", line 73, in RLock
    return RLock(ctx=self.get_context())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 194, in __init__
    SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1, ctx=ctx)
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 57, in __init__
    sl = self._semlock = _multiprocessing.SemLock(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system

and

Logger: homeassistant.setup
Source: setup.py:316
First occurred: 9:07:12 AM (1 occurrences)
Last logged: 9:07:12 AM

Setup failed for custom integration 'midea_dehumidifier_lan': Unable to import component: Exception importing custom_components.midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1037, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/midea_dehumidifier_lan/__init__.py", line 29, in <module>
    from midea_beautiful.cloud import MideaCloud
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/__init__.py", line 7, in <module>
    from midea_beautiful.lan import LanDevice, appliance_state
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/lan.py", line 13, in <module>
    from midea_beautiful.appliance import Appliance
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/appliance.py", line 8, in <module>
    from midea_beautiful.command import (
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/command.py", line 17, in <module>
    _order_lock = RLock()
                  ^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/context.py", line 73, in RLock
    return RLock(ctx=self.get_context())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 194, in __init__
    SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1, ctx=ctx)
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 57, in __init__
    sl = self._semlock = _multiprocessing.SemLock(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 979, in async_get_component
    comp = await self.hass.async_add_import_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1048, in _get_component
    raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.midea_dehumidifier_lan

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1037, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/midea_dehumidifier_lan/__init__.py", line 31, in <module>
    from midea_beautiful.lan import LanDevice
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/__init__.py", line 7, in <module>
    from midea_beautiful.lan import LanDevice, appliance_state
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/lan.py", line 13, in <module>
    from midea_beautiful.appliance import Appliance
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/appliance.py", line 8, in <module>
    from midea_beautiful.command import (
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/command.py", line 17, in <module>
    _order_lock = RLock()
                  ^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/context.py", line 73, in RLock
    return RLock(ctx=self.get_context())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 194, in __init__
    SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1, ctx=ctx)
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 57, in __init__
    sl = self._semlock = _multiprocessing.SemLock(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 316, in _async_setup_component
    component = await integration.async_get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 997, in async_get_component
    self._component_future.result()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 989, in async_get_component
    comp = self._get_component()
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1048, in _get_component
    raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.midea_dehumidifier_lan

ttravisswan avatar Apr 11 '24 15:04 ttravisswan

I have the same problem, and I can´t removed the integration.

aperezva avatar Apr 11 '24 15:04 aperezva

same here

cfkiel avatar Apr 11 '24 16:04 cfkiel

Same here unfortunately :(

peregrines2 avatar Apr 11 '24 16:04 peregrines2

Same here 🥶

dadaloop82 avatar Apr 11 '24 17:04 dadaloop82

Here too and it's consistent. Upgrade the OS to 24.4.2 and the integration breaks.

joao-opo avatar Apr 11 '24 17:04 joao-opo

I hope someone could solve the problem, but this integration in almost deprecated as i see.

aperezva avatar Apr 11 '24 17:04 aperezva

Same issue here

arne182 avatar Apr 11 '24 17:04 arne182

Same for me too

Drummingman avatar Apr 11 '24 17:04 Drummingman

Same here.

M0uC0 avatar Apr 11 '24 17:04 M0uC0

Same here

fotis3d avatar Apr 11 '24 17:04 fotis3d

Same.

moritzmaier84 avatar Apr 11 '24 17:04 moritzmaier84

+1

tof92130 avatar Apr 11 '24 18:04 tof92130

I hope someone could solve the problem, but this integration in almost deprecated as i see.

I see this PR just 23 min ago from a fork. He switched the multithread lib used in the midea_beautiful package. I don't know if @nbogojevic will review and approve. In the meantime, is there a way to refer directly the fork from requirements.txt?

gianlucasullazzo avatar Apr 11 '24 18:04 gianlucasullazzo

I did a fix on a fork of the used library. You can temporary (until the maintainer fixes things) use my fork of the integration, which requires that fork directly: https://github.com/vincentwolsink/homeassistant-midea-air-appliances-lan

Easiest is to add it as a custom repo in HACS and redownloading the integration via HACS.

vincentwolsink avatar Apr 11 '24 18:04 vincentwolsink

I did a fix on a fork of the used library. You can temporary (until the maintainer fixes things) use my fork of the integration, which requires that fork directly: https://github.com/vincentwolsink/homeassistant-midea-air-appliances-lan

Easiest is to add it as a custom repo in HACS and redownloading the integration via HACS.

Thanks @vincentwolsink, it works.

gianlucasullazzo avatar Apr 11 '24 18:04 gianlucasullazzo

I did a temp fix by forking the used library and pointing to that one. You can use my fork of the integration: https://github.com/vincentwolsink/homeassistant-midea-air-appliances-lan

Easiest is to add it as a custom repo in HACS and redownloading the integration via HACS.

works perfectly! thanx man!

moritzmaier84 avatar Apr 11 '24 18:04 moritzmaier84

I did a fix on a fork of the used library. You can temporary (until the maintainer fixes things) use my fork of the integration, which requires that fork directly: https://github.com/vincentwolsink/homeassistant-midea-air-appliances-lan

Easiest is to add it as a custom repo in HACS and redownloading the integration via HACS.

Thanks man. It works ;)

fotis3d avatar Apr 11 '24 20:04 fotis3d

Works, thanks

MaxiKingXXL avatar Apr 11 '24 20:04 MaxiKingXXL

Worked thanks man

muchabo297 avatar Apr 11 '24 21:04 muchabo297

Fix for HA to solve this

https://community.home-assistant.io/t/os-12-2-oserror-errno-30-read-only-file-system/715911

holdestmade avatar Apr 12 '24 07:04 holdestmade

Fix for HA to solve this

https://community.home-assistant.io/t/os-12-2-oserror-errno-30-read-only-file-system/715911

it works!

open an SSH connection and type the command: ha core rebuild

lucagia avatar Apr 12 '24 09:04 lucagia

open an SSH connection and type the command: ha core rebuild

Or do it the terminal/ssh addon

holdestmade avatar Apr 12 '24 09:04 holdestmade

Fix for HA to solve this https://community.home-assistant.io/t/os-12-2-oserror-errno-30-read-only-file-system/715911

it works!

open an SSH connection and type the command: ha core rebuild

Works for me too!

matteocorti avatar Apr 12 '24 09:04 matteocorti

the "ha core rebuild" + reboot also solved my issue.

paulo-serrao avatar Apr 12 '24 09:04 paulo-serrao

New release 0.9.3 should address the issue with read-only docker file system by switching to threading library, thanks to @vincentwolsink

nbogojevic avatar Apr 12 '24 11:04 nbogojevic

New release 0.9.3 should address the issue with read-only docker file system by switching to threading library, thanks to @vincentwolsink

It seems it does not work:

2024-04-12 14:21:57.308 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entity None for domain binary_sensor with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:57.316 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entity None for domain binary_sensor with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:57.322 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entity None for domain binary_sensor with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:57.327 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entity None for domain binary_sensor with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:57.332 ERROR (MainThread) [homeassistant.components.fan] Error adding entity None for domain fan with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:57.337 ERROR (MainThread) [homeassistant.components.fan] Error adding entity None for domain fan with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:57.345 ERROR (MainThread) [homeassistant.components.humidifier] Error adding entity None for domain humidifier with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:57.350 ERROR (MainThread) [homeassistant.components.humidifier] Error adding entity None for domain humidifier with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:57.356 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity None for domain sensor with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:57.364 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity None for domain sensor with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:57.370 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity None for domain sensor with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:57.374 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity None for domain sensor with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:21:58.972 WARNING (MainThread) [homeassistant.setup] Setup of telegram_bot is taking over 10 seconds.
2024-04-12 14:22:00.965 ERROR (MainThread) [homeassistant.components.switch] Error adding entity None for domain switch with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'
2024-04-12 14:22:00.970 ERROR (MainThread) [homeassistant.components.switch] Error adding entity None for domain switch with platform midea_dehumidifier_lan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'connection'

gianlucasullazzo avatar Apr 12 '24 12:04 gianlucasullazzo

I'll have to double check. I will disable the release meanwhile.

nbogojevic avatar Apr 12 '24 12:04 nbogojevic

yes I've installed it, it boots but unable to access the product

tof92130 avatar Apr 12 '24 12:04 tof92130

Can confirm, now is accessing fine but doesn't load any entities.

lollokara avatar Apr 12 '24 12:04 lollokara