mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Bugfix discovery use wrong time async (#4515)
* Bugfix discovery use wrong time async * fix lint
This commit is contained in:
parent
859d0d5ad6
commit
835577b2bc
@ -48,7 +48,7 @@ def async_listen(hass, service, callback):
|
||||
|
||||
def discover(hass, service, discovered=None, component=None, hass_config=None):
|
||||
"""Fire discovery event. Can ensure a component is loaded."""
|
||||
hass.async_add_job(
|
||||
hass.add_job(
|
||||
async_discover(hass, service, discovered, component, hass_config))
|
||||
|
||||
|
||||
@ -127,7 +127,7 @@ def load_platform(hass, component, platform, discovered=None,
|
||||
|
||||
Use `listen_platform` to register a callback for these events.
|
||||
"""
|
||||
hass.async_add_job(
|
||||
hass.add_job(
|
||||
async_load_platform(hass, component, platform, discovered,
|
||||
hass_config))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user