mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Ensure we do not actually create a BleakScanner in the usage test (#81362)
Avoids a failure when bluetooth is turned off when testing on macos: bleak.exc.BleakError: Bluetooth device is turned off
This commit is contained in:
parent
b2a4228dae
commit
ab14e55c05
@ -33,6 +33,7 @@ async def test_multiple_bleak_scanner_instances(hass):
|
||||
|
||||
uninstall_multiple_bleak_catcher()
|
||||
|
||||
with patch("bleak.get_platform_scanner_backend_type"):
|
||||
instance = bleak.BleakScanner()
|
||||
|
||||
assert not isinstance(instance, HaBleakScannerWrapper)
|
||||
|
Loading…
x
Reference in New Issue
Block a user