1
0
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:
J. Nick Koston
2022-08-16 14:52:53 -10:00
committed by GitHub
parent 8c62713af3
commit 6f3cdb6db1
8 changed files with 542 additions and 461 deletions

View File

@@ -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