Current release checking

I have this sensor, who checks if there is a newer release of HA, working good till i upgraded my RPi3 to buster.

- platform: command_line
  command: python3 -c "import requests; print(requests.get('https://pypi.python.org/pypi/homeassistant/json').json()['info']['version'])"
  name: Current HA Release
  scan_interval: 3600

Now it’s not working anymore getting ‘unknown’.
Anybody else have this issue?

There’s the version sensor available.
If you want to use your command_line sensor run the command on the command line, as ha user, venv activated, and see what it returns.