mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Bugfix async device_tracker see callback (#5259)
This commit is contained in:
parent
f75e13f55e
commit
6b00f7ff28
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user