Robert Schütz
2026-07-10 14:33:39 -07:00
parent 10efb6d8e9
commit d7cff14e56
2 changed files with 2 additions and 27 deletions

View File

@@ -1,21 +0,0 @@
diff --git a/tests/conftest.py b/tests/conftest.py
index 55defbe..551d19e 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -9,7 +9,7 @@ from aioesphomeapi import (
ReconnectLogic,
)
from bleak_retry_connector import BleakSlotManager
-from bluetooth_adapters import BluetoothAdapters
+from bluetooth_adapters import get_adapters
from habluetooth import (
BluetoothManager,
set_manager,
@@ -20,7 +20,7 @@ from zeroconf import Zeroconf
@pytest.fixture(scope="session", autouse=True)
def manager():
slot_manager = BleakSlotManager()
- bluetooth_adapters = BluetoothAdapters()
+ bluetooth_adapters = get_adapters()
set_manager(BluetoothManager(bluetooth_adapters, slot_manager))

View File

@@ -19,20 +19,16 @@
buildPythonPackage (finalAttrs: {
pname = "bleak-esphome";
version = "3.9.5";
version = "3.9.7";
pyproject = true;
src = fetchFromGitHub {
owner = "bluetooth-devices";
repo = "bleak-esphome";
tag = "v${finalAttrs.version}";
hash = "sha256-S4tYL/fq7wMjq81WRftZ1A+RVxs7kGpaM/TfVBNBgaI=";
hash = "sha256-MimbUCaGbzAs1qom2ET9dGn1WHjcoaWBWGcoqWVuaF8=";
};
patches = [
./bluetooth-adapters-2.4.0-compat.patch
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools>=75.8.2" setuptools