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.21k stars 30.58k forks source link

ZHA not starting after 2021.12.0 #61516

Closed junalmeida closed 2 years ago

junalmeida commented 2 years ago

The problem

ZHA fails to start after upgrading to 2021.12. 0

What version of Home Assistant Core has the issue?

core-2021.12.0

What was the last working version of Home Assistant Core?

core-2021.11.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

zha

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.setup
Source: components/zha/core/registries.py:86
First occurred: 4:37:48 PM (1 occurrences)
Last logged: 4:37:48 PM

Setup failed for zha: unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 181, in _async_setup_component
    component = integration.get_component()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 522, 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 "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 16, in <module>
    from . import api
  File "/usr/src/homeassistant/homeassistant/components/zha/api.py", line 21, in <module>
    from .core.const import (
  File "/usr/src/homeassistant/homeassistant/components/zha/core/__init__.py", line 4, in <module>
    from .device import ZHADevice
  File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 27, in <module>
    from . import channels, typing as zha_typing
  File "/usr/src/homeassistant/homeassistant/components/zha/core/channels/__init__.py", line 13, in <module>
    from . import (  # noqa: F401
  File "/usr/src/homeassistant/homeassistant/components/zha/core/channels/base.py", line 35, in <module>
    from ..helpers import LogMixin, retryable_req, safe_read
  File "/usr/src/homeassistant/homeassistant/components/zha/core/helpers.py", line 35, in <module>
    from .registries import BINDABLE_CLUSTERS
  File "/usr/src/homeassistant/homeassistant/components/zha/core/registries.py", line 86, in <module>
    zcl.clusters.measurement.SoilMoisture.cluster_id: SENSOR,
AttributeError: module 'zigpy.zcl.clusters.measurement' has no attribute 'SoilMoisture'

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

Hey there @dmulcahey, @adminiuga, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

junalmeida commented 2 years ago

BTW I have no soil moisture sensor on my network.

puddly commented 2 years ago

Do you have the "Custom deps deployment" addon installed or a /config/deps/ folder with zigpy inside? If so, delete them both.

Adminiuga commented 2 years ago

you are overriding HA zigpy dependencies and using an older zigpy version

junalmeida commented 2 years ago

I remember I've had it in the past, but have removed. I will check if there is any left over files.

junalmeida commented 2 years ago

Yep indeed there were some left over deps in place. Thanks for pointing to the right direction.