Move local bluetooth scanner code into habluetooth library (#104970)
This commit is contained in:
parent
428c184c75
commit
b6245c834d
12 changed files with 180 additions and 592 deletions
|
@ -9,6 +9,7 @@ from asyncio import Future
|
|||
from collections.abc import Callable, Iterable
|
||||
from typing import TYPE_CHECKING, cast
|
||||
|
||||
from habluetooth import BluetoothScanningMode
|
||||
from home_assistant_bluetooth import BluetoothServiceInfoBleak
|
||||
|
||||
from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback as hass_callback
|
||||
|
@ -17,12 +18,7 @@ from .base_scanner import BaseHaScanner, BluetoothScannerDevice
|
|||
from .const import DATA_MANAGER
|
||||
from .manager import BluetoothManager
|
||||
from .match import BluetoothCallbackMatcher
|
||||
from .models import (
|
||||
BluetoothCallback,
|
||||
BluetoothChange,
|
||||
BluetoothScanningMode,
|
||||
ProcessAdvertisementCallback,
|
||||
)
|
||||
from .models import BluetoothCallback, BluetoothChange, ProcessAdvertisementCallback
|
||||
from .wrappers import HaBleakScannerWrapper
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue