Skip to content

Commit e7a82bb

Browse files
authored
0.12.1 Release
2 parents c3cfc2d + 1426812 commit e7a82bb

File tree

4 files changed

+36
-8
lines changed

4 files changed

+36
-8
lines changed

README.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,37 @@ These are XBee Zigbee based radios that have been tested with the [zigpy-xbee](h
2929
- Digi XBee Series 2 (S2) modules. Note: These will need to be manually flashed with the Zigbee Coordinator API firmware via XCTU.
3030
- Digi XBee Series 3 (xbee3-24) modules
3131

32+
# Testing new releases
33+
34+
Testing a new release of the zigpy-xbee library before it is released in Home Assistant.
35+
36+
If you are using Supervised Home Assistant (formerly known as the Hassio/Hass.io distro):
37+
- Add https://github.com/home-assistant/hassio-addons-development as "add-on" repository
38+
- Install "Custom deps deployment" addon
39+
- Update config like:
40+
```
41+
pypi:
42+
- zigpy-xbee==0.12.0
43+
apk: []
44+
```
45+
where 0.12.0 is the new version
46+
- Start the addon
47+
48+
If you are instead using some custom python installation of Home Assistant then do this:
49+
- Activate your python virtual env
50+
- Update package with ``pip``
51+
```
52+
pip install zigpy-xbee==0.12.0
53+
3254
# Releases of zigpy-xbee via PyPI
33-
Tagged versions of zigpy-xbee are also released via PyPI
3455
56+
New packages of tagged versions are also released via the "zigpy-xbee" project on PyPI
3557
- https://pypi.org/project/zigpy-xbee/
36-
- https://pypi.org/project/zigpy-xbee/#history
37-
- https://pypi.org/project/zigpy-xbee/#files
58+
- https://pypi.org/project/zigpy-xbee/#history
59+
- https://pypi.org/project/zigpy-xbee/#files
60+
61+
Older packages of tagged versions are still available on the "zigpy-xbee-homeassistant" project on PyPI
62+
- https://pypi.org/project/zigpy-xbee-homeassistant/
3863
3964
# How to contribute
4065

zigpy_xbee/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MAJOR_VERSION = 0
22
MINOR_VERSION = 12
3-
PATCH_VERSION = "0"
3+
PATCH_VERSION = "1"
44
__short_version__ = "{}.{}".format(MAJOR_VERSION, MINOR_VERSION)
55
__version__ = "{}.{}".format(__short_version__, PATCH_VERSION)

zigpy_xbee/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
from zigpy.exceptions import APIException, DeliveryError
1010
from zigpy.types import LVList
1111

12+
import zigpy_xbee
1213
from zigpy_xbee.config import CONF_DEVICE_BAUDRATE, CONF_DEVICE_PATH, SCHEMA_DEVICE
13-
import zigpy_xbee.zigbee.application
1414

1515
from . import types as t, uart
1616

1717
LOGGER = logging.getLogger(__name__)
1818

19-
AT_COMMAND_TIMEOUT = 2
19+
AT_COMMAND_TIMEOUT = 1
2020
REMOTE_AT_COMMAND_TIMEOUT = 30
2121
PROBE_TIMEOUT = 45
2222

@@ -277,7 +277,7 @@ def is_running(self):
277277
@classmethod
278278
async def new(
279279
cls,
280-
application: zigpy_xbee.zigbee.application.ControllerApplication,
280+
application: "zigpy_xbee.zigbee.application.ControllerApplication",
281281
config: Dict[str, Any],
282282
) -> "XBee":
283283
"""Create new instance from """

zigpy_xbee/zigbee/application.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from zigpy.zdo.types import NodeDescriptor, ZDOCmd
1616

1717
import zigpy_xbee.api
18-
from zigpy_xbee.config import CONF_DEVICE, CONFIG_SCHEMA
18+
from zigpy_xbee.config import CONF_DEVICE, CONFIG_SCHEMA, SCHEMA_DEVICE
1919
from zigpy_xbee.types import EUI64, UNKNOWN_IEEE, UNKNOWN_NWK, TXStatus
2020

2121
# how long coordinator would hold message for an end device in 10ms units
@@ -33,6 +33,9 @@
3333

3434
class ControllerApplication(zigpy.application.ControllerApplication):
3535
SCHEMA = CONFIG_SCHEMA
36+
SCHEMA_DEVICE = SCHEMA_DEVICE
37+
38+
probe = zigpy_xbee.api.XBee.probe
3639

3740
def __init__(self, config: Dict[str, Any]):
3841
super().__init__(config=zigpy.config.ZIGPY_SCHEMA(config))

0 commit comments

Comments
 (0)