Allow empty config in discovery.async_load_platform (#69619)

This commit is contained in:
Erik Montnemery 2022-04-07 23:24:47 +02:00 committed by GitHub
parent 15348965f3
commit f4fb29200c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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