I have the same problem
My phone ip got blocked. No ip_bans.yaml and have added 192.168.0.0/24 to trusted_networks, my user to trusted_users, turned off ip ban and restarted.
Still can’t access HA from companion-app, but can login from my Mac (other ip, same account).
EDIT: Turns out my phone connected to my other wifi and companion app used the external url
The log did however show my ip as banned, but something of the above I did apparently solved it.
I’m glad you solved it mate. Still no luck for me.
I’m also suprised that not a single soul on forum knows logger’s “homeassistant.components.http.ban” or what it points to. There is no decent documentation.