From f4fb29200c5762f4c1676b18f77a37e85419b4da Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 7 Apr 2022 23:24:47 +0200 Subject: [PATCH] Allow empty config in discovery.async_load_platform (#69619) --- homeassistant/helpers/discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/helpers/discovery.py b/homeassistant/helpers/discovery.py index 93efd7e69c1..61117fb7d04 100644 --- a/homeassistant/helpers/discovery.py +++ b/homeassistant/helpers/discovery.py @@ -146,7 +146,7 @@ async def async_load_platform( Warning: Do not await this inside a setup method to avoid a dead lock. Use `hass.async_create_task(async_load_platform(..))` instead. """ - assert hass_config, "You need to pass in the real hass config" + assert hass_config is not None, "You need to pass in the real hass config" setup_success = True