When adding new tablets to the Fully Kiosk integration, it works fine with ipv4 (IPs and hostnames). But when I try adding tablets which resolve to an IPv6 address, it seems that HA has issues.
I saw this in the logs:
2023-09-18 16:56:42.911 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform fully_kiosk
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 616, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 503, in async_get_or_create
configuration_url = _validate_configuration_url(configuration_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 210, in _validate_configuration_url
raise ValueError(f"invalid configuration_url '{value}'")
ValueError: invalid configuration_url 'http://:2323'
The ValueError: invalid configuration_url 'http://:2323'
suggests that the integration expects an ipv4 IP and isn’t able to handle something resolving to a longer IPv6 address. (device is contactable etc)
Is this a bug with the Fully-Kiosk integration or is there something I could read about how IPv6 should work for resolving entities?
I’d be really happy for any ideas.