Can't enable Wireless Interface Rpi4

Hello,

I’ve been using HA on a raspberry pi4 for about a year now. The whole time I have been using the wlan0 interface for IP connectivity. I recently upgrade to 2021.2.0 and everything seemed fine but I noticed one day when using my lovelace dashboard that the UI stopped responding. After that I couldn’t load any web components and all my local WiFi devices stopped responding (z-wave and zigbee devices still worked fine). I tried rebooting a few times with no change. No changes to my network recently, doubled check the router and everything was still set properly.

I logged into the CLI with keyboard and mouse and did a “net info” command. My wlan0 interface had it’s same IP and was enabled. As a troubleshooting step I disabled my wlan0 interface and enabled eth0. It got an IP and I was able to load lovelace etc.

I went to go back to wireless and found I could not enabled the wlan0 interface. I get a 500 Internal server error. When I look in the supervisor logs I see the below stack trace.

21-02-09 14:58:15 INFO (MainThread) [supervisor.api.security] /network/interface/wlan0/update access from a0d7b954_ssh
21-02-09 14:58:15 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/sentry_sdk/integrations/aiohttp.py", line 123, in sentry_app_handle
    reraise(*_capture_exception(hub))
  File "/usr/local/lib/python3.8/site-packages/sentry_sdk/_compat.py", line 54, in reraise
    raise value
  File "/usr/local/lib/python3.8/site-packages/sentry_sdk/integrations/aiohttp.py", line 113, in sentry_app_handle
    response = await old_handle(self, request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/security.py", line 134, in system_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/security.py", line 196, in token_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/utils.py", line 61, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/src/supervisor/supervisor/api/network.py", line 218, in interface_update
    await asyncio.shield(self.sys_host.network.apply_changes(interface))
  File "/usr/src/supervisor/supervisor/host/network.py", line 137, in apply_changes
    settings = interface_update_payload(interface)
  File "/usr/src/supervisor/supervisor/dbus/payloads/generate.py", line 60, in interface_update_payload
    return template.render(interface=interface, name=name, uuid=uuid)
  File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/usr/local/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 83, in top-level template code
  File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'None' has no attribute 'mode'

Does anyone have any suggestions on what I can do next to troubleshoot?