mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 21:37:07 +00:00
Allow empty config in discovery.async_load_platform (#69619)
This commit is contained in:
parent
15348965f3
commit
f4fb29200c
@ -146,7 +146,7 @@ async def async_load_platform(
|
|||||||
Warning: Do not await this inside a setup method to avoid a dead lock.
|
Warning: Do not await this inside a setup method to avoid a dead lock.
|
||||||
Use `hass.async_create_task(async_load_platform(..))` instead.
|
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
|
setup_success = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user