core
core copied to clipboard
speedtest not working
The problem
SPEEDTEST integration is well added; however no value is displayed and it is indicated "unavailable"
What version of Home Assistant Core has the issue?
core-2024.4.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
speedtest-dotnet
Link to integration documentation on our website
https://www.home-assistant.io/integrations/speedtestdotnet
Diagnostics information
2024-04-24 11:42:09.676 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-04-24 11:42:09.696 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-04-24 11:42:22.278 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-04-24 11:42:24.333 WARNING (MainThread) [homeassistant.components.freebox.router] Home access is not granted
2024-04-24 11:42:29.519 WARNING (MainThread) [alexapy.alexalogin] Domain amazon.com does not match reported account domain https://www.amazon.fr; functionality is not likely to work, please fix
2024-04-24 11:42:29.709 WARNING (zeroconf-ServiceBrowser-_googlecast._tcp-109) [pychromecast.dial] Failed to determine cast type for host async_add_job
, which is deprecated and will be removed in Home Assistant 2025.4; Please review https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job for replacement options at custom_components/alexa_media/init.py, line 625: hass.async_add_job(, please create a bug report at https://github.com/alandtse/alexa_media_player/issues
2024-04-24 11:42:38.365 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'alexa_media' calls async_add_job
, which is deprecated and will be removed in Home Assistant 2025.4; Please review https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job for replacement options at custom_components/alexa_media/media_player.py, line 188: hass.async_add_job(, please create a bug report at https://github.com/alandtse/alexa_media_player/issues
2024-04-24 11:58:05.041 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/speedtest.py", line 1493, in get_best_server
fastest = sorted(results.keys())[0]
~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/coordinator.py", line 76, in _async_update_data return await self.hass.async_add_executor_job(self.update_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/coordinator.py", line 64, in update_data best_server = self.api.get_best_server() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/speedtest.py", line 1495, in get_best_server raise SpeedtestBestServerFailure('Unable to connect to servers to ' speedtest.SpeedtestBestServerFailure: Unable to connect to servers to test latency.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/coordinator.py", line 80, in _async_update_data raise UpdateFailed(err) from err homeassistant.helpers.update_coordinator.UpdateFailed: Unable to connect to servers to test latency.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/init.py", line 35, in _async_finish_startup await coordinator.async_config_entry_first_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 287, in async_config_entry_first_refresh raise ex homeassistant.exceptions.ConfigEntryNotReady: Unable to connect to servers to test latency. 2024-04-24 12:00:41.411 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/speedtest.py", line 1493, in get_best_server fastest = sorted(results.keys())[0] ~~~~~~~~~~~~~~~~~~~~~~^^^ IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/coordinator.py", line 76, in _async_update_data return await self.hass.async_add_executor_job(self.update_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/coordinator.py", line 64, in update_data best_server = self.api.get_best_server() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/speedtest.py", line 1495, in get_best_server raise SpeedtestBestServerFailure('Unable to connect to servers to ' speedtest.SpeedtestBestServerFailure: Unable to connect to servers to test latency.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/coordinator.py", line 80, in _async_update_data raise UpdateFailed(err) from err homeassistant.helpers.update_coordinator.UpdateFailed: Unable to connect to servers to test latency.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/init.py", line 35, in _async_finish_startup await coordinator.async_config_entry_first_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 287, in async_config_entry_first_refresh raise ex homeassistant.exceptions.ConfigEntryNotReady: Unable to connect to servers to test latency.
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response