mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Guard for reloading with no zone config (#31547)
This commit is contained in:
parent
bb96584d6e
commit
d31eb9f352
@ -228,7 +228,7 @@ async def async_setup(hass: HomeAssistant, config: Dict) -> bool:
|
|||||||
conf = await component.async_prepare_reload(skip_reset=True)
|
conf = await component.async_prepare_reload(skip_reset=True)
|
||||||
if conf is None:
|
if conf is None:
|
||||||
return
|
return
|
||||||
await yaml_collection.async_load(conf[DOMAIN])
|
await yaml_collection.async_load(conf.get(DOMAIN, []))
|
||||||
|
|
||||||
service.async_register_admin_service(
|
service.async_register_admin_service(
|
||||||
hass,
|
hass,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user