Migrate to using faster monotonic_time_coarse from bluetooth-data-tools (#104882)
This commit is contained in:
parent
e724414475
commit
a3dd2b8ea9
6 changed files with 6 additions and 7 deletions
|
@ -9,10 +9,10 @@ import logging
|
|||
from typing import Any, Generic, TypeVar
|
||||
|
||||
from bleak import BleakError
|
||||
from bluetooth_data_tools import monotonic_time_coarse
|
||||
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.debounce import Debouncer
|
||||
from homeassistant.util.dt import monotonic_time_coarse
|
||||
|
||||
from . import BluetoothChange, BluetoothScanningMode, BluetoothServiceInfoBleak
|
||||
from .passive_update_coordinator import PassiveBluetoothDataUpdateCoordinator
|
||||
|
|
|
@ -9,10 +9,10 @@ import logging
|
|||
from typing import Any, Generic, TypeVar
|
||||
|
||||
from bleak import BleakError
|
||||
from bluetooth_data_tools import monotonic_time_coarse
|
||||
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.debounce import Debouncer
|
||||
from homeassistant.util.dt import monotonic_time_coarse
|
||||
|
||||
from . import BluetoothChange, BluetoothScanningMode, BluetoothServiceInfoBleak
|
||||
from .passive_update_processor import PassiveBluetoothProcessorCoordinator
|
||||
|
|
|
@ -14,6 +14,7 @@ from bleak.backends.device import BLEDevice
|
|||
from bleak.backends.scanner import AdvertisementData
|
||||
from bleak_retry_connector import NO_RSSI_VALUE
|
||||
from bluetooth_adapters import DiscoveredDeviceAdvertisementData, adapter_human_name
|
||||
from bluetooth_data_tools import monotonic_time_coarse
|
||||
from home_assistant_bluetooth import BluetoothServiceInfoBleak
|
||||
|
||||
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
|
||||
|
@ -25,7 +26,6 @@ from homeassistant.core import (
|
|||
)
|
||||
from homeassistant.helpers.event import async_track_time_interval
|
||||
import homeassistant.util.dt as dt_util
|
||||
from homeassistant.util.dt import monotonic_time_coarse
|
||||
|
||||
from . import models
|
||||
from .const import (
|
||||
|
|
|
@ -16,6 +16,7 @@ from bluetooth_adapters import (
|
|||
AdapterDetails,
|
||||
BluetoothAdapters,
|
||||
)
|
||||
from bluetooth_data_tools import monotonic_time_coarse
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.const import EVENT_LOGGING_CHANGED
|
||||
|
@ -27,7 +28,6 @@ from homeassistant.core import (
|
|||
)
|
||||
from homeassistant.helpers import discovery_flow
|
||||
from homeassistant.helpers.event import async_track_time_interval
|
||||
from homeassistant.util.dt import monotonic_time_coarse
|
||||
|
||||
from .advertisement_tracker import (
|
||||
TRACKER_BUFFERING_WOBBLE_SECONDS,
|
||||
|
|
|
@ -7,10 +7,9 @@ from enum import Enum
|
|||
from typing import TYPE_CHECKING, Final
|
||||
|
||||
from bleak import BaseBleakClient
|
||||
from bluetooth_data_tools import monotonic_time_coarse
|
||||
from home_assistant_bluetooth import BluetoothServiceInfoBleak
|
||||
|
||||
from homeassistant.util.dt import monotonic_time_coarse
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .manager import BluetoothManager
|
||||
|
||||
|
|
|
@ -3,9 +3,9 @@ from __future__ import annotations
|
|||
|
||||
from bluetooth_adapters import BluetoothAdapters
|
||||
from bluetooth_auto_recovery import recover_adapter
|
||||
from bluetooth_data_tools import monotonic_time_coarse
|
||||
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.util.dt import monotonic_time_coarse
|
||||
|
||||
from .models import BluetoothServiceInfoBleak
|
||||
from .storage import BluetoothStorage
|
||||
|
|
Loading…
Add table
Reference in a new issue