tomaae / homeassistant-openmediavault

OpenMediaVault integration for Home Assistant
Apache License 2.0
109 stars 15 forks source link

[Bug] When OMV Instance is unreachable, this integration makes HA hang on bootup #132

Open HannesK-ME opened 1 year ago

HannesK-ME commented 1 year ago

Describe the issue

OMV Integration makes HA hang for far too long on bootup. Eventually there does seem to be a timeout but I'd argue it's far too long. Perhaps this could be configurable?

How to reproduce the issue

  1. Turn off/unplug from network your OMV instance
  2. Restart HA
  3. See how it's stuck at 'starting openmediavault' for a long time while other, perhaps more important stuff waits to be initialised

Expected behavior

Have a shorter or configurable timeout

Screenshots

Software versions

Diagnostics data

Traceback/Error logs

Additional context

tomaae commented 1 year ago

Does that really hang HA, or you just see starting up message?

HannesK-ME commented 1 year ago

Ok, hang might not have been the correct word. It’s not like it’s unresponsive, but it doesn’t initiate other things that get initiated after OMV, which in some instances are important functions that I wouldn’t want to wait this long for if there’s a way around it