Skip to content

Use new zigpy request kwarg format #3410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ readme = "README.md"
license = {text = "Apache License Version 2.0"}
requires-python = ">=3.12"
dependencies = [
"zigpy>=0.66.0",
"zigpy>=0.68.1",
]

[tool.setuptools.packages.find]
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ pytest-sugar
pytest-timeout
pytest-asyncio
pytest>=7.1.3
zigpy>=0.66.0
zigpy>=0.68.1
ruff==0.0.261
4 changes: 2 additions & 2 deletions tests/test_smartwings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ async def test_smartwings_inverted_commands(zigpy_device_from_quirk, quirk):
# close cover and check if the command is inverted
await covering_cluster.command(close_command_id)
assert len(device.request.mock_calls) == 1
assert device.request.mock_calls[0][1][5] == b"\x01\x01\x00"
assert device.request.mock_calls[0].kwargs["data"] == b"\x01\x01\x00"

# open cover and check if the command is inverted
await covering_cluster.command(open_command_id)
assert len(device.request.mock_calls) == 2
assert device.request.mock_calls[1][1][5] == b"\x01\x02\x01"
assert device.request.mock_calls[1].kwargs["data"] == b"\x01\x02\x01"
Loading