Command Line Sensor no longer working since 2020.3.x?

Did something change with command line sensors?
I had this:

  - platform: command_line
    name: "WAN IP Address"
    command: "wget -q -O - http://icanhazip.com/ | tail"

It also says:

wget: server returned error: HTTP/1.1 403 Forbidden

If I execute the command in the HA container. It works if I run it in the ssh & web terminal though so it looks like they have removed the command from the HA container? I can work around this but not sure why it’s changed after working for so long.

It looks like it is the website that is blocking something about wget in the homeassistant instance.

This command seems to work fine:
wget -qO- http://ipecho.net/plain | xargs echo
or
wget -qO- http://ifconfig.me

Both of them return the IPv4 address not the IPv6 one… both work in the container though.

Does this work for you? I don’t have IP6, but found command online. At least I don’t get 403 error
curl -s ipv6.icanhazip.com | xargs echo -n
or
wget -qO- https://ipv6.icanhazip.com/

Yeah that works. I might switch back and use that. It’s just odd that it stopped working just now… Anyway, better than a bash script/mqtt sensor and cronjob…