From 00c6f3cb854b6a7015fd9474d9af1bc46f819b3d Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 6 Feb 2020 10:55:12 -0800 Subject: [PATCH] Guard for reloading with no zone config (#31547) --- homeassistant/components/zone/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/zone/__init__.py b/homeassistant/components/zone/__init__.py index 91a1338b671..33ac15853f4 100644 --- a/homeassistant/components/zone/__init__.py +++ b/homeassistant/components/zone/__init__.py @@ -228,7 +228,7 @@ async def async_setup(hass: HomeAssistant, config: Dict) -> bool: conf = await component.async_prepare_reload(skip_reset=True) if conf is None: return - await yaml_collection.async_load(conf[DOMAIN]) + await yaml_collection.async_load(conf.get(DOMAIN, [])) service.async_register_admin_service( hass,