tomaae / homeassistant-openmediavault

OpenMediaVault integration for Home Assistant
Apache License 2.0
111 stars 16 forks source link

[Bug] After last HA update addon won't start #125

Closed Koterak closed 1 year ago

Koterak commented 1 year ago

When I try to add devices I got error. It happened after HA was updated to Python 3.11.

How to reproduce the issue

Steps to reproduce the behavior: Just try to add devices from OMV.

Software versions

Traceback/Error logs

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/openmediavault/__init__.py", line 35, in async_setup_entry
    await controller.async_update()
  File "/config/custom_components/openmediavault/omv_controller.py", line 203, in async_update
    await self.hass.async_add_executor_job(self.get_compose)
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/openmediavault/omv_controller.py", line 559, in get_compose
    if "data" not in tmp:
       ^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
tomaae commented 1 year ago

I dont think this error coudl be related to HA update. Can you run it in debug?

BebeMischa commented 1 year ago

just for reference, no issues here after latest updates

Koterak commented 1 year ago

After two more reinstalls it started to work again