Use builtin TimeoutError [a-d] (#109678)
This commit is contained in:
parent
41a256a3ff
commit
c82933175d
63 changed files with 97 additions and 137 deletions
|
@ -2294,7 +2294,7 @@ async def test_process_advertisements_timeout(
|
|||
def _callback(service_info: BluetoothServiceInfo) -> bool:
|
||||
return False
|
||||
|
||||
with pytest.raises(asyncio.TimeoutError):
|
||||
with pytest.raises(TimeoutError):
|
||||
await async_process_advertisements(
|
||||
hass, _callback, {}, BluetoothScanningMode.ACTIVE, 0
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue