Fix for async device_tracker (#5192)
parent
50a8ec7335
commit
93d462b010
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue