mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Catch import error when processing config (#23833)
This commit is contained in:
parent
e687848152
commit
b8f6d824fd
@ -770,7 +770,11 @@ async def async_process_component_config(
|
||||
This method must be run in the event loop.
|
||||
"""
|
||||
domain = integration.domain
|
||||
component = integration.get_component()
|
||||
try:
|
||||
component = integration.get_component()
|
||||
except ImportError as ex:
|
||||
_LOGGER.error("Unable to import %s: %s", domain, ex)
|
||||
return None
|
||||
|
||||
if hasattr(component, 'CONFIG_SCHEMA'):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user