python312Packages.zha-quirks: fix test with zigpy 0.65.3
This commit is contained in:
@@ -24,6 +24,11 @@ buildPythonPackage rec {
|
||||
hash = "sha256-LudwIENP1KCX7+HwyklCUdAu5mRLDcnMEZBzbRH2FM0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/zigpy/zha-device-handlers/pull/3296
|
||||
./zigpy-0.65.3-compat.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail ', "setuptools-git-versioning<2"' "" \
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
diff --git a/tests/conftest.py b/tests/conftest.py
|
||||
index e64beb2..c1f0785 100644
|
||||
--- a/tests/conftest.py
|
||||
+++ b/tests/conftest.py
|
||||
@@ -88,7 +88,6 @@ class MockApp(zigpy.application.ControllerApplication):
|
||||
def app_controller_mock():
|
||||
"""App controller mock."""
|
||||
config = {"device": {"path": "/dev/ttyUSB0"}, "database": None}
|
||||
- config = MockApp.SCHEMA(config)
|
||||
app = MockApp(config)
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user