hass-music-assistant: Error in async_setup_entry stream_ip = get_local_ip_from_internal_url(hass)

What version of Music Assistant has the issue?

2022.6.8

The problem

During the setup of the integration i get the following error in the logs. image

Version before worked. I reinstalled the HACS component and tried to reconfigure the integration.

How to reproduce

Reinstall Music Assistant

Relevant log output

`Logger: homeassistant.config_entries Source: helpers/network.py:201 First occurred: 08:41:48 (1 occurrences) Last logged: 08:41:48

Error setting up entry Music Assistant for mass Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 339, in async_setup result = await component.async_setup_entry(hass, self) File “/config/custom_components/mass/init.py”, line 115, in async_setup_entry stream_ip = get_local_ip_from_internal_url(hass) File “/config/custom_components/mass/init.py”, line 58, in get_local_ip_from_internal_url url = get_url(hass, allow_internal=True, allow_external=False) File “/usr/src/homeassistant/homeassistant/helpers/network.py”, line 201, in get_url raise NoURLAvailableError homeassistant.helpers.network.NoURLAvailableError`

Additional information

No response

What version of Home Assistant Core are your running

2022.6.7

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

ODROID

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 26 (8 by maintainers)

Most upvoted comments

@LordNex read above. A fix is on the way.

@marcelveldt Seen that thanks. Just thought I’d pass along the way I have things setup incase you were wondering. I went ahead and bought a Nabu casa account a long time ago so that’s usually how I connect. But I still throw DuckDNS on there for other reasons. Thanks for all the hard work. Very nice piece of software! 👍

Just wait a few hours. I will release the fix within that time

ok. However I just roll back to previous version and now is working again with https

I made the changes and can confirm that it works again by using http.

OK, that is good to hear. Nevertheless I’ll put a small patch in the code to fallback to the interface IP when we couldn’t derive the local IP from the internal URL.