mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Use hass.loop.create_future() for bluetooth (#100054)
This commit is contained in:
parent
1a5f093397
commit
6899245020
@ -138,7 +138,7 @@ async def async_process_advertisements(
|
||||
timeout: int,
|
||||
) -> BluetoothServiceInfoBleak:
|
||||
"""Process advertisements until callback returns true or timeout expires."""
|
||||
done: Future[BluetoothServiceInfoBleak] = Future()
|
||||
done: Future[BluetoothServiceInfoBleak] = hass.loop.create_future()
|
||||
|
||||
@hass_callback
|
||||
def _async_discovered_device(
|
||||
|
Loading…
x
Reference in New Issue
Block a user