ble_monitor icon indicating copy to clipboard operation
ble_monitor copied to clipboard

[Bug]: Installation fails with "config flow" error

Open nickdos opened this issue 2 years ago • 17 comments

What happened?

Installed via HACS and did a restart. Attempted to install via "Add integration" - found this integration and clicked install.

The installation shows spinning icon for over a minute and then show the error message: Config flow could not be loaded: undefined.

Nothing appears in my log. I'm running Home Assistant Supervised (2022.05.3) with latest version of HA (2022.6.5).

Sensor type

No response

Relevant log output

No response

nickdos avatar Jun 12 '22 07:06 nickdos

Try to hit F5 a couple of times or clear your browser cache.

Ernst79 avatar Jun 12 '22 08:06 Ernst79

Thanks for the suggestion - clearing cache did not fix it. I also tried another browser as well as using incognito mode (fresh login no shared cache, cookies, etc.) and all failed with the same error. Still nothing in logs.

nickdos avatar Jun 13 '22 23:06 nickdos

hmm, I'll try to test it later this week on my development system.

Ernst79 avatar Jun 14 '22 09:06 Ernst79

Just tested it, but I don't see any errors during installation. I'm running HA Os myself, don't have a supervisor installation. Perhaps try to remove it from HACS and reinstall it again? other thing you can try is to enable debug logging for BLE monitor, this might give me additional hints what is wrong (and what not).

Ernst79 avatar Jun 14 '22 13:06 Ernst79

Could be a strange artifact of my system, so if no one else reports this, just file it under "one off". I'm currently using an ESP32 to communicate with my BLE sensor so I'm not desperate to get this component working - was more of an interest in comparing it to the ESP32, for better long term reliability.

nickdos avatar Jun 15 '22 00:06 nickdos

On the ha forum, there is a user with a similar issue, but he gets a message about pyric not being available. ~~Not sure why, as we don’t use pyric as far as I know.~~

2022-06-14 19:56:43 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration ble_monitor: No module named ‘pyric’

Ernst79 avatar Jun 15 '22 05:06 Ernst79

@nickdos I think I'm experiencing the same issue, or at least a symptom of the same issue. I have had passive BLE monitor working in the past. It's been removed for a minute. I just tried to re-add it and it does not find passive BLE in the integrations list after restart. I've tried multiple times and it's just not there. The custom component folders are definitely in my system and I know the screens that are supposed to come next, something is just blocking it.

SergeantPup avatar Jun 19 '22 20:06 SergeantPup

Did you clear the cache and hit F5 a couple of times.

Ernst79 avatar Jun 19 '22 20:06 Ernst79

lol, I can't believe that just worked. thanks

SergeantPup avatar Jun 19 '22 20:06 SergeantPup

@nickdos the issue that was reported on the HA forum was caused by the Snap version of HA. After installing the HA in a docker container. Are you using a "Snap version of HA".

Ernst79 avatar Jun 20 '22 06:06 Ernst79

@nickdos the issue that was reported on the HA forum was caused by the Snap version of HA. After installing the HA in a docker container. Are you using a "Snap version of HA".

No, I'm using a normal supervised version. Host OS is slightly out of date though (reports its now unsupported - Debian Buster). Architecture is x86_64.

image image

nickdos avatar Jun 20 '22 06:06 nickdos

Also having this problem. There's a long delay with the spinner that says "Please wait while Passive BLE monitor is being setup," and then after about one or two minutes I get the "Config flow could not be loaded: undefined" error. I am running on Home Assistant Blue/Odroid-N2+.

Update: I just removed and reinstalled the integration (all via HACS GUI) and for some reason it worked the second time around.

image

glenviewjeff avatar Jul 07 '22 17:07 glenviewjeff

Most of the times, it is a browser cache issue, which can be solved by hitting F5 a couple of times.

Ernst79 avatar Jul 07 '22 19:07 Ernst79

Hello, I got this issue too, and using a brand new browser does not help.

Salamandar avatar Jul 19 '22 19:07 Salamandar

Try to remove and reinstall it, restart HA and hit F5 a couple of times

Ernst79 avatar Jul 19 '22 19:07 Ernst79

I had this issue also with HACS installation. Remove and reinstalling fixed the issue.

silentnyte avatar Jul 22 '22 21:07 silentnyte

Indeed, it fixed it for me too. weird.

Salamandar avatar Jul 23 '22 10:07 Salamandar