Speedtest_cli not working - FIXED

For me I had issues getting Speedtest component to work. Noticed that I was getting an error:

[ul]/usr/bin/python3: can’t open file ‘/var/opt/hass/lib/speedtest_cli.py’: [Errno 2] No such file or directory[/ul]

Not sure where I messed up the installation, but the fix is easy so sharing for others if they see it:

[ul]root@automation:/var/opt/hass# ls /var/opt/hass/lib/speedtest_cli.py
ls: cannot access /var/opt/hass/lib/speedtest_cli.py: No such file or directory
(Doesn’t exist where HA is looking)[/ul]

[ul]root@automation:/var/opt/hass# which speedtest-cli
/usr/local/bin/speedtest-cli
(Here it is)[/ul]

[ul]root@automation:/var/opt/hass# ln -s /usr/local/bin/speedtest-cli /var/opt/hass/lib/speedtest_cli.py
(Make a link for HA to use.)[/ul]

Hope this helps someone.