Refactor bluetooth scanners for better seperation of concerns (#104909)
This commit is contained in:
parent
7a9c3819e0
commit
dd9c22672a
12 changed files with 195 additions and 111 deletions
|
@ -12,9 +12,9 @@ import pytest
|
|||
|
||||
from homeassistant.components.bluetooth import (
|
||||
MONOTONIC_TIME,
|
||||
BaseHaRemoteScanner,
|
||||
BluetoothServiceInfoBleak,
|
||||
HaBluetoothConnector,
|
||||
HomeAssistantRemoteScanner,
|
||||
async_get_advertisement_callback,
|
||||
)
|
||||
from homeassistant.components.bluetooth.usage import (
|
||||
|
@ -26,7 +26,7 @@ from homeassistant.core import HomeAssistant
|
|||
from . import _get_manager, generate_advertisement_data, generate_ble_device
|
||||
|
||||
|
||||
class FakeScanner(BaseHaRemoteScanner):
|
||||
class FakeScanner(HomeAssistantRemoteScanner):
|
||||
"""Fake scanner."""
|
||||
|
||||
def __init__(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue