Skip to content
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
31 changes: 28 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,37 @@ These are XBee Zigbee based radios that have been tested with the [zigpy-xbee](h
- Digi XBee Series 2 (S2) modules. Note: These will need to be manually flashed with the Zigbee Coordinator API firmware via XCTU.
- Digi XBee Series 3 (xbee3-24) modules

# Testing new releases

Testing a new release of the zigpy-xbee library before it is released in Home Assistant.

If you are using Supervised Home Assistant (formerly known as the Hassio/Hass.io distro):
- Add https://github.com/home-assistant/hassio-addons-development as "add-on" repository
- Install "Custom deps deployment" addon
- Update config like:
```
pypi:
- zigpy-xbee==0.12.0
apk: []
```
where 0.12.0 is the new version
- Start the addon

If you are instead using some custom python installation of Home Assistant then do this:
- Activate your python virtual env
- Update package with ``pip``
```
pip install zigpy-xbee==0.12.0

# Releases of zigpy-xbee via PyPI
Tagged versions of zigpy-xbee are also released via PyPI

New packages of tagged versions are also released via the "zigpy-xbee" project on PyPI
- https://pypi.org/project/zigpy-xbee/
- https://pypi.org/project/zigpy-xbee/#history
- https://pypi.org/project/zigpy-xbee/#files
- https://pypi.org/project/zigpy-xbee/#history
- https://pypi.org/project/zigpy-xbee/#files

Older packages of tagged versions are still available on the "zigpy-xbee-homeassistant" project on PyPI
- https://pypi.org/project/zigpy-xbee-homeassistant/

# How to contribute

Expand Down
2 changes: 1 addition & 1 deletion zigpy_xbee/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MAJOR_VERSION = 0
MINOR_VERSION = 12
PATCH_VERSION = "0"
PATCH_VERSION = "1"
__short_version__ = "{}.{}".format(MAJOR_VERSION, MINOR_VERSION)
__version__ = "{}.{}".format(__short_version__, PATCH_VERSION)
6 changes: 3 additions & 3 deletions zigpy_xbee/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
from zigpy.exceptions import APIException, DeliveryError
from zigpy.types import LVList

import zigpy_xbee
from zigpy_xbee.config import CONF_DEVICE_BAUDRATE, CONF_DEVICE_PATH, SCHEMA_DEVICE
import zigpy_xbee.zigbee.application

from . import types as t, uart

LOGGER = logging.getLogger(__name__)

AT_COMMAND_TIMEOUT = 2
AT_COMMAND_TIMEOUT = 1
REMOTE_AT_COMMAND_TIMEOUT = 30
PROBE_TIMEOUT = 45

Expand Down Expand Up @@ -277,7 +277,7 @@ def is_running(self):
@classmethod
async def new(
cls,
application: zigpy_xbee.zigbee.application.ControllerApplication,
application: "zigpy_xbee.zigbee.application.ControllerApplication",
config: Dict[str, Any],
) -> "XBee":
"""Create new instance from """
Expand Down
5 changes: 4 additions & 1 deletion zigpy_xbee/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from zigpy.zdo.types import NodeDescriptor, ZDOCmd

import zigpy_xbee.api
from zigpy_xbee.config import CONF_DEVICE, CONFIG_SCHEMA
from zigpy_xbee.config import CONF_DEVICE, CONFIG_SCHEMA, SCHEMA_DEVICE
from zigpy_xbee.types import EUI64, UNKNOWN_IEEE, UNKNOWN_NWK, TXStatus

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

class ControllerApplication(zigpy.application.ControllerApplication):
SCHEMA = CONFIG_SCHEMA
SCHEMA_DEVICE = SCHEMA_DEVICE

probe = zigpy_xbee.api.XBee.probe

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