I am getting this error from discovering netdisco:
File "/usr/local/lib/python3.7/site-packages/netdisco/discoverables/__init__.py", line 125, in info_from_entry
ATTR_HOST: str(ipaddress.ip_address(entry.address)),
File "/usr/local/lib/python3.7/ipaddress.py", line 54, in ip_address
address)
ValueError: None does not appear to be an IPv4 or IPv6 address
At HA 0.107.7
Not aware of what netdisco is for and I have not seen any other operational errors.
So why is “discovery:” in configuration.yaml looking for it?
I do not explicitly reference netdisco in my configuration files.
(Same error message in HA 0.108.0)
After a few restarts the error message at startup disappeared. Now a netdisco related error appeared this morning. It appears that it was looking for apple_tv which was powered OFF. To avoid this error
I ignore apple_tv in configuration.yaml.
discovery:
ignore:
- apple_tv
- igd
2020-04-09 08:43:25 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/discovery/__init__.py", line 202, in scan_devices
results = await hass.async_add_job(_discover, netdisco)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/discovery/__init__.py", line 230, in _discover
for service in netdisco.get_info(disc):
File "/usr/local/lib/python3.7/site-packages/netdisco/discovery.py", line 104, in get_info
return self.discoverables[dis].get_info()
File "/usr/local/lib/python3.7/site-packages/netdisco/discoverables/__init__.py", line 28, in get_info
return [self.info_from_entry(entry) for entry in self.get_entries()]
File "/usr/local/lib/python3.7/site-packages/netdisco/discoverables/__init__.py", line 28, in <listcomp>
return [self.info_from_entry(entry) for entry in self.get_entries()]
File "/usr/local/lib/python3.7/site-packages/netdisco/discoverables/apple_tv.py", line 14, in info_from_entry
info = super().info_from_entry(entry)
File "/usr/local/lib/python3.7/site-packages/netdisco/discoverables/__init__.py", line 125, in info_from_entry
ATTR_HOST: str(ipaddress.ip_address(entry.address)),
File "/usr/local/lib/python3.7/ipaddress.py", line 54, in ip_address
address)
ValueError: None does not appear to be an IPv4 or IPv6 address