Google WiFi integration used to work. Now it wonât load:
I have several Google Wi-Fi Mesh AC-1304 devices around the house.
I get this error when booting HA:
2023-05-27 10:15:11.438 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing component custom_components.googlewifi
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 709, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/googlewifi/__init__.py", line 8, in <module>
from googlewifi import GoogleHomeIgnoreDevice, GoogleWifi, GoogleWifiException
File "/usr/local/lib/python3.10/site-packages/googlewifi/__init__.py", line 8, in <module>
from ghome_foyer_api.api_pb2 import GetHomeGraphRequest
File "/usr/local/lib/python3.10/site-packages/ghome_foyer_api/api_pb2.py", line 18, in <module>
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
File "/usr/local/lib/python3.10/site-packages/google/protobuf/descriptor_pool.py", line 220, in AddSerializedFile
file_desc = self._ConvertFileProtoToFileDescriptor(file_desc_proto)
File "/usr/local/lib/python3.10/site-packages/google/protobuf/descriptor_pool.py", line 771, in _ConvertFileProtoToFileDescriptor
message_desc = self._ConvertMessageDescriptor(
File "/usr/local/lib/python3.10/site-packages/google/protobuf/descriptor_pool.py", line 913, in _ConvertMessageDescriptor
self._CheckConflictRegister(desc, desc.full_name, desc.file.name)
File "/usr/local/lib/python3.10/site-packages/google/protobuf/descriptor_pool.py", line 192, in _CheckConflictRegister
raise TypeError(error_msg)
TypeError: Conflict register for file "ghome_foyer_api/api.proto": google.internal.home.foyer.v1.GetAssistantRoutinesRequest is already defined in file "google/internal/home/foyer/v1.proto". Please fix the conflict by adding package name on the proto file, or use different name for the duplication.
2023-05-27 10:15:11.443 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration googlewifi: Unable to import component: Exception importing custom_components.googlewifi
Something about a naming conflict.
I also have the Google Home HACS custom integration:
Could that be the reason?
Update:
I canât even delete the integration. It throws errors and fails.
I also see this error in the logs:
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/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 81, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 86, in delete
result = await hass.config_entries.async_remove(entry_id)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 950, in async_remove
await entry.async_remove(self.hass)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_remove
component = integration.get_component()
File "/usr/src/homeassistant/homeassistant/loader.py", line 716, in get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.googlewifi
Is this integration working for anyone else?
- FINAL UPDATE
I got this resolved by updating Home Assistant that allowed me to update the Google Home HACS Integration to the latest. I also updated everything else for good measure (Google Home, Google WiFi, and Google Nest among others) and everything worked as expected again.