diff --git a/homeassistant/helpers/discovery.py b/homeassistant/helpers/discovery.py index 46eeef45f14..6a527021c77 100644 --- a/homeassistant/helpers/discovery.py +++ b/homeassistant/helpers/discovery.py @@ -149,7 +149,7 @@ def async_load_platform(hass, component, platform, discovered=None, Use `listen_platform` to register a callback for these events. Warning: Do not yield from this inside a setup method to avoid a dead lock. - Use `hass.loop.async_add_job(async_load_platform(..))` instead. + Use `hass.async_add_job(async_load_platform(..))` instead. This method is a coroutine. """