core: Integration 'zha' not found

The problem

After running Check Config add on, it says there was an grep error when migrating core.device_registry then reports that it cannot find ZHA.

What version of Home Assistant Core has the issue?

core-2022.02.0

What was the last working version of Home Assistant Core?

core-2021.12.10

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?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[00:24:42] INFO: Don't worry, this temporary installation is not overwriting your current one.
[00:24:42] INFO: Installing Home Assistant: stable...
[00:24:42] INFO: Please be patient, this might take a few minutes...
[00:25:45] INFO: Installed Home Assistant 2022.2.0
[00:25:45] INFO: Making a copy of your configuration for checking...
[00:25:46] INFO: Checking your configuration against this version...
[00:29:14] ERROR: The configuration check did not pass!
[00:29:14] ERROR: See the output below for more details.
Testing configuration at /tmp/config
INFO:homeassistant.helpers.storage:Migrating core.device_registry storage from 1.2 to 1.3
INFO:homeassistant.helpers.storage:Migrating core.entity_registry storage from 1.4 to 1.5
grep: write error: Broken pipe
INFO:custom_components.unified_remote:Remotes loaded sucessful
ERROR:homeassistant.config:Invalid config for [automation]: Integration 'zha' not found (See /tmp/config/configuration.yaml, line 16). 
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/homeassistant/components/device_automation/__init__.py", line 135, in async_get_device_automation_platform
    integration = await async_get_integration_with_requirements(hass, domain)
  File "/usr/local/lib/python3.9/site-packages/homeassistant/requirements.py", line 75, in async_get_integration_with_requirements
    raise IntegrationNotFound(domain)
homeassistant.loader.IntegrationNotFound: Integration 'zha' not found.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Additional information

#65071

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 16 (11 by maintainers)

Most upvoted comments

This is a bug in the automation logic, a device trigger shouldn’t be able to take the whole integration down.

I fixed this in #67064 and will be part of 2022.3 (currently beta)