mirror of
https://github.com/home-assistant/core.git
synced 2025-06-03 12:47:06 +00:00
Fix for async device_tracker (#5192)
This commit is contained in:
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…
x
Reference in New Issue
Block a user