Skip to content

Commit

Permalink
Merge pull request #146 from puddly/rc
Browse files Browse the repository at this point in the history
0.18.2 Release
  • Loading branch information
puddly committed Sep 11, 2023
2 parents b00c838 + a61788f commit 8dec8f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
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 = 18
PATCH_VERSION = "1"
PATCH_VERSION = "2"
__short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}"
__version__ = f"{__short_version__}.{PATCH_VERSION}"
13 changes: 10 additions & 3 deletions zigpy_xbee/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ async def start_network(self):
self.listener_event("raw_device_initialized", xbee_dev)
self.devices[dev.ieee] = xbee_dev

await self.register_endpoints()

async def load_network_info(self, *, load_devices=False):
# Load node info
node_info = self.state.node_info
Expand Down Expand Up @@ -186,10 +188,15 @@ async def force_remove(self, dev):
"""Forcibly remove device from NCP."""
pass

async def add_endpoint(self, descriptor):
async def add_endpoint(self, descriptor: zdo_t.SimpleDescriptor) -> None:
"""Register a new endpoint on the device."""
# This is not provided by the XBee API
pass
self._device.replacement["endpoints"][descriptor.endpoint] = {
"device_type": descriptor.device_type,
"profile_id": descriptor.profile,
"input_clusters": descriptor.input_clusters,
"output_clusters": descriptor.output_clusters,
}
self._device.add_endpoint(descriptor.endpoint)

async def _get_association_state(self):
"""Wait for Zigbee to start."""
Expand Down

0 comments on commit 8dec8f4

Please sign in to comment.