Skip to content

Commit 49621a6

Browse files
authored
Bump zigpy to 0.75.0 (#3753)
* Bump zigpy to 0.75.0 * Use new quirks registry attribute name * Access using `registry_v1` property * Access using `registry_v2` property * Access using `DEVICE_REGISTRY`
1 parent dec4339 commit 49621a6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ readme = "README.md"
1414
license = {text = "Apache-2.0"}
1515
requires-python = ">=3.12"
1616
dependencies = [
17-
"zigpy>=0.74.0",
17+
"zigpy>=0.75.0",
1818
]
1919

2020
[tool.setuptools.packages.find]

requirements_test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ pytest-sugar
1313
pytest-timeout
1414
pytest-asyncio
1515
pytest>=7.1.3
16-
zigpy>=0.74.0
16+
zigpy>=0.75.0
1717
ruff==0.0.261

tests/test_quirks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
zhaquirks.setup()
6161

6262
ALL_QUIRK_CLASSES = []
63-
for manufacturer in zq._DEVICE_REGISTRY._registry.values():
63+
for manufacturer in zq.DEVICE_REGISTRY.registry_v1.values():
6464
for model_quirk_list in manufacturer.values():
6565
for quirk in model_quirk_list:
6666
if quirk in ALL_QUIRK_CLASSES:

tests/test_quirks_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
ALL_QUIRK_V2_CLASSES: list[QuirksV2RegistryEntry] = itertools.chain.from_iterable(
15-
zigpy.quirks._DEVICE_REGISTRY._registry_v2.values()
15+
zigpy.quirks.DEVICE_REGISTRY.registry_v2.values()
1616
)
1717

1818

tests/test_tuya_spells.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class TuyaTestSpellDevice(EnchantedDevice):
6565

6666

6767
ENCHANTED_QUIRKS = [TuyaTestSpellDevice]
68-
for manufacturer in zigpy.quirks._DEVICE_REGISTRY._registry.values():
68+
for manufacturer in zigpy.quirks.DEVICE_REGISTRY.registry_v1.values():
6969
for model_quirk_list in manufacturer.values():
7070
for quirk_entry in model_quirk_list:
7171
if quirk_entry in ENCHANTED_QUIRKS:

0 commit comments

Comments
 (0)