Skip to content
Snippets Groups Projects
Unverified Commit ab14e55c authored by J. Nick Koston's avatar J. Nick Koston Committed by GitHub
Browse files

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
parent b2a4228d
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,8 @@ async def test_multiple_bleak_scanner_instances(hass):
uninstall_multiple_bleak_catcher()
instance = bleak.BleakScanner()
with patch("bleak.get_platform_scanner_backend_type"):
instance = bleak.BleakScanner()
assert not isinstance(instance, HaBleakScannerWrapper)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment