Skip to content
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

Implement new radio API #172

Merged
merged 31 commits into from
Jun 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d972531
Implement new core methods
puddly Nov 13, 2021
2effc40
Start the watchdog task on connect
puddly Nov 13, 2021
3fe31b3
Use `zigpy.state` attributes instead of old properties
puddly Nov 13, 2021
713690d
Use the channel mask if the logical channel is `None`
puddly Nov 24, 2021
f81a6fa
Wait for the network state to change when it is written
puddly Nov 24, 2021
ed90a0e
Shorten network and node info variable names
puddly Nov 24, 2021
3a18479
Fix references to old zigpy properties
puddly Nov 25, 2021
ba4ea80
Implement new radio state schema
puddly Nov 28, 2021
4f52658
Correctly read link key
puddly Dec 16, 2021
c408d38
Rewrite `_wait_for_network_state` into `_change_network_state`
puddly Dec 16, 2021
dc0cd97
Support more network state corner cases
puddly Dec 16, 2021
cf5cc8c
Do not disconnect when no serial connection was made
puddly Dec 26, 2021
180a810
Merge branch 'dev' into puddly/new-radio-api
puddly Mar 11, 2022
0c7e42c
Merge remote-tracking branch 'zigpy/dev' into puddly/new-radio-api
puddly Mar 11, 2022
a13fe90
Add unit tests
puddly Mar 12, 2022
2d0ac93
Merge remote-tracking branch 'zigpy/dev' into puddly/new-radio-api
puddly Mar 12, 2022
4b355d3
Increase patch coverage to 100%
puddly Mar 13, 2022
9ac00de
Allow the node IEEE address to not be written when forming a network
puddly Mar 15, 2022
4b95110
Use consistent type annotations
puddly Mar 23, 2022
89f2d1a
Replace `EUI64.UNKNOWN` with the device IEEE addr
puddly Mar 28, 2022
46c1c2f
Merge remote-tracking branch 'zigpy/dev' into puddly/new-radio-api
puddly Apr 18, 2022
99df53f
Implement `add_endpoint`
puddly Apr 19, 2022
030edfc
The invalid endpoint descriptor is only consistently missing cluster IDs
puddly Apr 20, 2022
6f7253d
Only two endpoints seem to actually work
puddly Apr 22, 2022
448eb74
Add types for `ZDPResponseHandling`
puddly May 15, 2022
94363a0
Include more network info metadata
puddly May 15, 2022
e7e8f64
Bump minimum required zigpy version to 0.47.0
puddly Jun 15, 2022
08511f0
Add new metadata to network state unit tests
puddly Jun 16, 2022
9f56abe
Mock `add_endpoint` in startup unit test
puddly Jun 16, 2022
ec3b56f
Use `create_task` instead of `ensure_future`
puddly Jun 19, 2022
2945eac
Increase `disconnect` watchdog TTL from 0s to 1s
puddly Jun 19, 2022
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
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ force_sort_within_sections = true
known_first_party = zigpy_deconz,tests
forced_separate = tests
combine_as_imports = true

[tool:pytest]
asyncio_mode = auto
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
author_email="schmidt.d@aon.at",
license="GPL-3.0",
packages=find_packages(exclude=["tests"]),
install_requires=["pyserial-asyncio", "zigpy>=0.40.0"],
tests_require=["pytest", "pytest-asyncio", "asynctest"],
install_requires=["pyserial-asyncio", "zigpy>=0.47.0"],
tests_require=["pytest", "pytest-asyncio>=0.17", "asynctest"],
)
1 change: 0 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from .async_mock import AsyncMock, MagicMock, patch, sentinel

pytestmark = pytest.mark.asyncio
DEVICE_CONFIG = {zigpy.config.CONF_DEVICE_PATH: "/dev/null"}


Expand Down
Loading