Skip to content

Commit

Permalink
Bugfix discovery use wrong time async (#4515)
Browse files Browse the repository at this point in the history
* Bugfix discovery use wrong time async

* fix lint
  • Loading branch information
pvizeli authored and balloob committed Nov 22, 2016
1 parent 859d0d5 commit 835577b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/helpers/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def discovery_event_listener(event):

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


Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit 835577b

Please sign in to comment.