Can't remove or add core integration for BAF

I have been using the SenseME custom integration with 4 BAF Haiku fans over the last few months and it has worked great.

Release 2022.6 added a new core integration for BAF but required that the fan firmware be updated. I tried this with one of my 4 fans and I left the other 3 fans on the old firmware and the SenseME custom integration.

Big Ass Fans - Home Assistant

The new BAF integration worked great for a while but it stopped working around June 27th and started generating errors.

When I try to remove the integration, I can click on “delete” and it gives me the “Are you sure?” prompt. I click on “OK” and nothing happens.

When I try to add the integration, I get the following error:

Error
This integration does not support configuration via the UI. If you followed this link from the Home Assistant website, make sure you run the latest version of Home Assistant.

I thought that 2022.7 might fix the issue but it did not.

Any help would be appreciated.

Thanks you!

This is my current setup:

Version core-2022.6.7
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.9.12
Operating System Family Linux
Operating System Version 5.15.45

Below are the logs:

Logger: homeassistant.setup
Source: setup.py:162
First occurred: 6:21:04 PM (1 occurrences)
Last logged: 6:21:04 PM

Setup failed for baf: Unable to import component: cannot import name ‘builder’ from ‘google.protobuf.internal’ (/usr/local/lib/python3.9/site-packages/google/protobuf/internal/init.py)

Logger: homeassistant.config_entries
Source: config_entries.py:749
First occurred: 6:21:57 PM (1 occurrences)
Last logged: 6:21:57 PM

Error occurred loading configuration flow for integration baf: cannot import name ‘builder’ from ‘google.protobuf.internal’ (/usr/local/lib/python3.9/site-packages/google/protobuf/internal/init.py)

Logger: aiohttp.server
Source: components/baf/init.py:6
First occurred: 6:24:04 PM (1 occurrences)
Last logged: 6:24:04 PM

Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py”, line 435, in _handle_request
resp = await request_handler(request)
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py”, line 504, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py”, line 117, in impl
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 60, in security_filter_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/forwarded.py”, line 100, in forwarded_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 28, in request_context_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 79, in ban_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 220, in auth_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 137, in handle
result = await result
File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 112, in delete
result = await hass.config_entries.async_remove(entry_id)
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 862, in async_remove
await entry.async_remove(self.hass)
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 514, in async_remove
component = integration.get_component()
File “/usr/src/homeassistant/homeassistant/loader.py”, line 599, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File “/usr/local/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 850, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/usr/src/homeassistant/homeassistant/components/baf/init.py”, line 6, in
from aiobafi6 import Device, Service
File “/usr/local/lib/python3.9/site-packages/aiobafi6/init.py”, line 3, in
from .device import Device
File “/usr/local/lib/python3.9/site-packages/aiobafi6/device.py”, line 19, in
from .proto import aiobafi6_pb2
File “/usr/local/lib/python3.9/site-packages/aiobafi6/proto/aiobafi6_pb2.py”, line 5, in
from google.protobuf.internal import builder as _builder
ImportError: cannot import name ‘builder’ from ‘google.protobuf.internal’ (/usr/local/lib/python3.9/site-packages/google/protobuf/internal/init.py)