I've spent countless hours debugging this, and solution is so simple...
Context.
I had an UniFI controller as an addon to Home Assistant on Raspberry Pi 4. It
was working as expected for years. Then RPi 4 started to not be enough for my
HA, and also other stuff needed