core: Component error: zha - cannot import name 'setup' from 'zhaquirks'

The problem

After updating to core-2021.4.0 i have this error:

Component error: zha - cannot import name ‘setup’ from ‘zhaquirks’ (/config/deps/lib/python3.8/site-packages/zhaquirks/init.py)

ZHA Won’t work.

What is version of Home Assistant Core has the issue?

core-2021.4.0

What was the last working version of Home Assistant Core?

core-2021.3.4

What type of installation are you running?

Home Assistant Supervised

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: setup.py:162
First occurred: 12:08:24 (1 occurrences)
Last logged: 12:08:24

Setup failed for zha: Unable to import component: cannot import name 'setup' from 'zhaquirks' (/config/deps/lib/python3.8/site-packages/zhaquirks/__init__.py)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

I have deleted the lib folder under /config/.deps Rebooted HA and now works well Thanks a lot really Best regards Stefano

I didn’t have a chance to try the fix yet. But updated to 2021.4.2 and RWL020 Started working again in my automations with no other tinkering. Thanks to everyone for the quick work!

It’s already fixed in Home Assistant 2021.4.2