Fix for async device_tracker (#5192)

pull/4960/merge
Adam Mills 2017-01-05 17:10:43 -05:00 committed by Paulus Schoutsen
parent 50a8ec7335
commit 93d462b010
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ def async_setup(hass: HomeAssistantType, config: ConfigType):
scanner = yield from hass.loop.run_in_executor(
None, platform.get_scanner, hass, {DOMAIN: p_config})
elif hasattr(platform, 'async_setup_scanner'):
setup = yield from platform.setup_scanner(
setup = yield from platform.async_setup_scanner(
hass, p_config, tracker.see)
elif hasattr(platform, 'setup_scanner'):
setup = yield from hass.loop.run_in_executor(