mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
moved imports to top level (#27503)
This commit is contained in:
parent
1dcdc17202
commit
0331c8453a
@ -2,6 +2,8 @@
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
import pygatt # pylint: disable=import-error
|
||||
|
||||
from homeassistant.helpers.event import track_point_in_utc_time
|
||||
from homeassistant.components.device_tracker.legacy import (
|
||||
YAML_DEVICES,
|
||||
@ -26,8 +28,6 @@ MIN_SEEN_NEW = 5
|
||||
|
||||
def setup_scanner(hass, config, see, discovery_info=None):
|
||||
"""Set up the Bluetooth LE Scanner."""
|
||||
# pylint: disable=import-error
|
||||
import pygatt
|
||||
|
||||
new_devices = {}
|
||||
hass.data.setdefault(DATA_BLE, {DATA_BLE_ADAPTER: None})
|
||||
|
Loading…
x
Reference in New Issue
Block a user