File tree Expand file tree Collapse file tree 4 files changed +36
-8
lines changed Expand file tree Collapse file tree 4 files changed +36
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11MAJOR_VERSION = 0
22MINOR_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 )
Original file line number Diff line number Diff line change 99from zigpy .exceptions import APIException , DeliveryError
1010from zigpy .types import LVList
1111
12+ import zigpy_xbee
1213from zigpy_xbee .config import CONF_DEVICE_BAUDRATE , CONF_DEVICE_PATH , SCHEMA_DEVICE
13- import zigpy_xbee .zigbee .application
1414
1515from . import types as t , uart
1616
1717LOGGER = logging .getLogger (__name__ )
1818
19- AT_COMMAND_TIMEOUT = 2
19+ AT_COMMAND_TIMEOUT = 1
2020REMOTE_AT_COMMAND_TIMEOUT = 30
2121PROBE_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 """
Original file line number Diff line number Diff line change 1515from zigpy .zdo .types import NodeDescriptor , ZDOCmd
1616
1717import 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
1919from 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
3333
3434class 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 ))
You can’t perform that action at this time.
0 commit comments