mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +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,7 +33,8 @@ async def test_multiple_bleak_scanner_instances(hass):
|
|||||||
|
|
||||||
uninstall_multiple_bleak_catcher()
|
uninstall_multiple_bleak_catcher()
|
||||||
|
|
||||||
instance = bleak.BleakScanner()
|
with patch("bleak.get_platform_scanner_backend_type"):
|
||||||
|
instance = bleak.BleakScanner()
|
||||||
|
|
||||||
assert not isinstance(instance, HaBleakScannerWrapper)
|
assert not isinstance(instance, HaBleakScannerWrapper)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user