Devices in trusted_networks gets blocked with ip_ban

I am running into a situation where a device in a “trusted” subnet gets added to ip_bans.yaml. When that happens, I’ve noticed there’s no easy way to remove it… you have to remove it and then do a full on restart of HA which isn’t ideal.

homeassistant:
  auth_providers:
    - type: homeassistant
    - type: trusted_networks
      trusted_networks:
        - 192.168.50.0/24
        - 192.168.60.0/24

http:
  ip_ban_enabled: True
  login_attempts_threshold: 3

But then after a few failed attempts, for whatever reason, I’ll then see entries like this in ip_bans.yaml:

192.168.50.102:
  banned_at: '2019-08-22T01:23:57'

192.168.50.112:
  banned_at: '2019-08-26T13:32:42'

I would assume that a trusted network should never be allowed to be banned. Am I misunderstanding this functionality? Or could this be a bug in the code?