mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Bump bluetooth deps for bleak 0.20 (#89925)
Co-authored-by: K <z@kwi.li>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
from unittest.mock import patch
|
||||
|
||||
import bleak
|
||||
from bleak.backends.device import BLEDevice
|
||||
import bleak_retry_connector
|
||||
import pytest
|
||||
|
||||
@@ -16,10 +15,14 @@ from homeassistant.components.bluetooth.wrappers import (
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from . import _get_manager
|
||||
from . import _get_manager, generate_ble_device
|
||||
|
||||
MOCK_BLE_DEVICE = BLEDevice(
|
||||
"00:00:00:00:00:00", "any", delegate="", details={"path": "/dev/hci0/device"}
|
||||
MOCK_BLE_DEVICE = generate_ble_device(
|
||||
"00:00:00:00:00:00",
|
||||
"any",
|
||||
delegate="",
|
||||
details={"path": "/dev/hci0/device"},
|
||||
rssi=-127,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user