Skip to content

Commit 7e87043

Browse files
authored
0.13.0 Release
2 parents d42c366 + fc9aa53 commit 7e87043

File tree

3 files changed

+32
-13
lines changed

3 files changed

+32
-13
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
author_email="[email protected]",
2222
license="GPL-3.0",
2323
packages=find_packages(exclude=["tests"]),
24-
install_requires=["pyserial-asyncio", "zigpy>=0.24.0"],
24+
install_requires=["pyserial-asyncio", "zigpy>=0.37.0"],
2525
tests_require=["pytest", "pytest-asyncio", "asynctest"],
2626
)

zigpy_deconz/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# coding: utf-8
44
MAJOR_VERSION = 0
5-
MINOR_VERSION = 12
6-
PATCH_VERSION = "1"
5+
MINOR_VERSION = 13
6+
PATCH_VERSION = "0"
77
__short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}"
88
__version__ = f"{__short_version__}.{PATCH_VERSION}"

zigpy_deconz/zigbee/application.py

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import zigpy.endpoint
1313
import zigpy.exceptions
1414
import zigpy.neighbor
15+
import zigpy.state
1516
import zigpy.types
1617
import zigpy.util
1718

@@ -66,7 +67,7 @@ async def startup(self, auto_form=False):
6667
self.version = await self._api.version()
6768
await self._api.device_state()
6869
(ieee,) = await self._api[NetworkParameter.mac_address]
69-
self._ieee = zigpy.types.EUI64(ieee)
70+
self.state.node_information.ieee = zigpy.types.EUI64(ieee)
7071

7172
if self._api.protocol_version >= PROTO_VER_WATCHDOG:
7273
asyncio.ensure_future(self._reset_watchdog())
@@ -79,16 +80,34 @@ async def startup(self, auto_form=False):
7980
if auto_form and should_form:
8081
await self.form_network()
8182

82-
(self._pan_id,) = await self._api[NetworkParameter.nwk_panid]
83-
(self._nwk,) = await self._api[NetworkParameter.nwk_address]
84-
(self._ext_pan_id,) = await self._api[NetworkParameter.nwk_extended_panid]
85-
await self._api[NetworkParameter.channel_mask]
83+
(self.state.node_information.nwk,) = await self._api[
84+
NetworkParameter.nwk_address
85+
]
86+
(self.state.network_information.pan_id,) = await self._api[
87+
NetworkParameter.nwk_panid
88+
]
89+
(self.state.network_information.extended_pan_id,) = await self._api[
90+
NetworkParameter.nwk_extended_panid
91+
]
92+
(self.state.network_information.channel_mask,) = await self._api[
93+
NetworkParameter.channel_mask
94+
]
8695
await self._api[NetworkParameter.aps_extended_panid]
87-
await self._api[NetworkParameter.trust_center_address]
88-
await self._api[NetworkParameter.security_mode]
89-
(self._channel,) = await self._api[NetworkParameter.current_channel]
96+
if self.state.network_information.tc_link_key is None:
97+
self.state.network_information.tc_link_key = zigpy.state.Key()
98+
(self.state.network_information.tc_link_key.partner_ieee,) = await self._api[
99+
NetworkParameter.trust_center_address
100+
]
101+
(self.state.network_information.security_level,) = await self._api[
102+
NetworkParameter.security_mode
103+
]
104+
(self.state.network_information.channel,) = await self._api[
105+
NetworkParameter.current_channel
106+
]
90107
await self._api[NetworkParameter.protocol_version]
91-
(self._nwk_update_id,) = await self._api[NetworkParameter.nwk_update_id]
108+
(self.state.network_information.nwk_update_id,) = await self._api[
109+
NetworkParameter.nwk_update_id
110+
]
92111

93112
coordinator = await DeconzDevice.new(
94113
self,
@@ -434,6 +453,6 @@ async def new(cls, application, ieee, nwk, version: int, device_path: str):
434453
ep.out_clusters = from_ep.out_clusters
435454
else:
436455
application.devices[ieee] = dev
437-
await dev._initialize()
456+
await dev.initialize()
438457

439458
return dev

0 commit comments

Comments
 (0)