mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Reorganize bluetooth integration to prepare for remote and multi-adapter support (#76883)
This commit is contained in:
@@ -904,8 +904,8 @@ def mock_bleak_scanner_start():
|
||||
scanner = bleak.BleakScanner
|
||||
bluetooth_models.HA_BLEAK_SCANNER = None
|
||||
|
||||
with patch("homeassistant.components.bluetooth.HaBleakScanner.stop"), patch(
|
||||
"homeassistant.components.bluetooth.HaBleakScanner.start",
|
||||
with patch("homeassistant.components.bluetooth.models.HaBleakScanner.stop"), patch(
|
||||
"homeassistant.components.bluetooth.models.HaBleakScanner.start",
|
||||
) as mock_bleak_scanner_start:
|
||||
yield mock_bleak_scanner_start
|
||||
|
||||
|
||||
Reference in New Issue
Block a user