home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.61k stars 30.77k forks source link

Comfoconnect does not start after upgrade from 2024.9.2 to 2024.9.3 #126610

Closed matejsalamon closed 1 month ago

matejsalamon commented 1 month ago

The problem

After upgrading HA from 2024.9.2 to 2024.9.3 Zehnder Comfoconnect Integration can not be started, deleted or loaded any longer.

What version of Home Assistant Core has the issue?

2024.9.3

What was the last working version of Home Assistant Core?

2024.9.2

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Zehnder Comfoconnect

Link to integration documentation on our website

https://www.home-assistant.io/integrations/comfoconnect

Diagnostics information

Error occurred loading flow for integration comfoconnect: cannot import name 'runtime_version' from 'google.protobuf' (/usr/local/lib/python3.12/site-packages/google/protobuf/init.py)

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @michaelarnauts, mind taking a look at this issue as it has been labeled with an integration (comfoconnect) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `comfoconnect` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign comfoconnect` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


comfoconnect documentation comfoconnect source (message by IssueLinks)

joostlek commented 1 month ago

Can you pos thte full log?

verhoevendanny commented 1 month ago

The same here. Logger: homeassistant.setup Bron: setup.py:334 Eerst voorgekomen: 12:46:36 (1 gebeurtenissen) Laatst gelogd: 12:46:36

Setup failed for custom integration 'comfoconnect': Unable to import component: cannot import name 'runtime_version' from 'google.protobuf' (/usr/local/lib/python3.12/site-packages/google/protobuf/init.py) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 1007, in async_get_component comp = await self.hass.async_add_import_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1067, in _get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func return func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 995, in exec_module File "", line 488, in _call_with_frames_removed File "/config/custom_components/comfoconnect/init.py", line 8, in from aiocomfoconnect import ComfoConnect, discover_bridges File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/init.py", line 3, in from .bridge import Bridge # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/bridge.py", line 27, in from .protobuf import zehnder_pb2 File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/protobuf/zehnder_pb2.py", line 15, in import nanopb.generator.proto.nanopb_pb2 as nanopb__pb2 File "/usr/local/lib/python3.12/site-packages/nanopb/generator/proto/nanopb_pb2.py", line 9, in from google.protobuf import runtime_version as _runtime_version ImportError: cannot import name 'runtime_version' from 'google.protobuf' (/usr/local/lib/python3.12/site-packages/google/protobuf/init.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component component = await integration.async_get_component() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1027, in async_get_component self._component_future.result() File "/usr/src/homeassistant/homeassistant/loader.py", line 1019, in async_get_component comp = self._get_component() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1067, in _get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 995, in exec_module File "", line 488, in _call_with_frames_removed File "/config/custom_components/comfoconnect/init.py", line 8, in from aiocomfoconnect import ComfoConnect, discover_bridges File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/init.py", line 3, in from .bridge import Bridge # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/bridge.py", line 27, in from .protobuf import zehnder_pb2 File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/protobuf/zehnder_pb2.py", line 15, in import nanopb.generator.proto.nanopb_pb2 as nanopb__pb2 File "/usr/local/lib/python3.12/site-packages/nanopb/generator/proto/nanopb_pb2.py", line 9, in from google.protobuf import runtime_version as _runtime_version ImportError: cannot import name 'runtime_version' from 'google.protobuf' (/usr/local/lib/python3.12/site-packages/google/protobuf/init.py)

joostlek commented 1 month ago

This is a custom component, please raise it at their issue tracker

matejsalamon commented 1 month ago

That's true it is custom component but official HA Zehnder Integration has significantly fewer entities. Can you add the following that were available before in the "Custom Component":

kevinpanetto commented 1 month ago

I have the same issue. I think that it happens because of the update

edwardmjackson commented 1 month ago

Tracked at https://github.com/michaelarnauts/home-assistant-comfoconnect/issues/77 for future readers