Bugfix async device_tracker see callback (#5259)

This commit is contained in:
Pascal Vizeli 2017-01-10 17:19:51 +01:00 committed by Paulus Schoutsen
parent f75e13f55e
commit 6b00f7ff28

View File

@ -158,7 +158,7 @@ def async_setup(hass: HomeAssistantType, config: ConfigType):
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)