From b8f6d824fdfa54455dab959f55c8d77c1e1aeea5 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 12 May 2019 23:54:55 -0700 Subject: [PATCH] Catch import error when processing config (#23833) --- homeassistant/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/config.py b/homeassistant/config.py index 1be3ba082..95be31d5b 100644 --- a/homeassistant/config.py +++ b/homeassistant/config.py @@ -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: