mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Use hass.loop.create_future() for bluetooth (#100054)
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user