-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement new zigpy radio API (#123)
* WIP * Re-enable ZDO passthrough * Fix unit tests for Python 3.8+ * Fix network formation logic * Clean up types * Remove `asyncio.coroutine` decorator and clean up tests * Increase patch test coverage to 100% * Update pre-commit config to fix issue with `black` * Use zigpy `_device` property * Fix invalid calls to `str.format` * Pass the correct data type when writing keys * Create an `add_endpoint` stub * Use new ZCL cluster command syntax * Fix isort config warnings * Include radio library version in network info * Use the correct data types when setting the PAN IDs * Do not send `CB(2)` when permitting joins #123 (comment) * Bump minimum required zigpy version to 0.47.0
- Loading branch information
Showing
11 changed files
with
242 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
"""Setup module for zigpy-xbee""" | ||
|
||
import os | ||
import pathlib | ||
|
||
from setuptools import find_packages, setup | ||
|
||
import zigpy_xbee | ||
|
||
this_directory = os.path.join(os.path.abspath(os.path.dirname(__file__))) | ||
with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name="zigpy-xbee", | ||
version=zigpy_xbee.__version__, | ||
description="A library which communicates with XBee radios for zigpy", | ||
long_description=long_description, | ||
long_description=(pathlib.Path(__file__).parent / "README.md").read_text(), | ||
long_description_content_type="text/markdown", | ||
url="http://github.com/zigpy/zigpy-xbee", | ||
author="Russell Cloran", | ||
author_email="[email protected]", | ||
license="GPL-3.0", | ||
packages=find_packages(exclude=["*.tests"]), | ||
install_requires=["pyserial-asyncio", "zigpy>= 0.23.0"], | ||
tests_require=["pytest"], | ||
install_requires=["pyserial-asyncio", "zigpy>=0.47.0"], | ||
tests_require=["pytest", "asynctest", "pytest-asyncio"], | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"""Mock utilities that are async aware.""" | ||
import sys | ||
|
||
if sys.version_info[:2] < (3, 8): | ||
from asynctest.mock import * # noqa | ||
|
||
AsyncMock = CoroutineMock # noqa: F405 | ||
else: | ||
from unittest.mock import * # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.