Skip to content

Commit

Permalink
Bugfix async device_tracker see callback (#5259)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored and nordlead2005 committed Jan 10, 2017
1 parent 922308b commit 71fddd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/device_tracker/__init__.py
Expand Up @@ -158,7 +158,7 @@ def async_setup_platform(p_type, p_config, disc_info=None):
None, platform.get_scanner, hass, {DOMAIN: p_config})
elif hasattr(platform, 'async_setup_scanner'):
setup = yield from platform.async_setup_scanner(
hass, p_config, tracker.see)
hass, p_config, tracker.async_see)
elif hasattr(platform, 'setup_scanner'):
setup = yield from hass.loop.run_in_executor(
None, platform.setup_scanner, hass, p_config, tracker.see)
Expand Down

0 comments on commit 71fddd2

Please sign in to comment.