Skip to content

Commit

Permalink
0.13.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminiuga authored Aug 25, 2021
2 parents d42c366 + fc9aa53 commit 7e87043
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
author_email="schmidt.d@aon.at",
license="GPL-3.0",
packages=find_packages(exclude=["tests"]),
install_requires=["pyserial-asyncio", "zigpy>=0.24.0"],
install_requires=["pyserial-asyncio", "zigpy>=0.37.0"],
tests_require=["pytest", "pytest-asyncio", "asynctest"],
)
4 changes: 2 additions & 2 deletions zigpy_deconz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# coding: utf-8
MAJOR_VERSION = 0
MINOR_VERSION = 12
PATCH_VERSION = "1"
MINOR_VERSION = 13
PATCH_VERSION = "0"
__short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}"
__version__ = f"{__short_version__}.{PATCH_VERSION}"
39 changes: 29 additions & 10 deletions zigpy_deconz/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import zigpy.endpoint
import zigpy.exceptions
import zigpy.neighbor
import zigpy.state
import zigpy.types
import zigpy.util

Expand Down Expand Up @@ -66,7 +67,7 @@ async def startup(self, auto_form=False):
self.version = await self._api.version()
await self._api.device_state()
(ieee,) = await self._api[NetworkParameter.mac_address]
self._ieee = zigpy.types.EUI64(ieee)
self.state.node_information.ieee = zigpy.types.EUI64(ieee)

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

(self._pan_id,) = await self._api[NetworkParameter.nwk_panid]
(self._nwk,) = await self._api[NetworkParameter.nwk_address]
(self._ext_pan_id,) = await self._api[NetworkParameter.nwk_extended_panid]
await self._api[NetworkParameter.channel_mask]
(self.state.node_information.nwk,) = await self._api[
NetworkParameter.nwk_address
]
(self.state.network_information.pan_id,) = await self._api[
NetworkParameter.nwk_panid
]
(self.state.network_information.extended_pan_id,) = await self._api[
NetworkParameter.nwk_extended_panid
]
(self.state.network_information.channel_mask,) = await self._api[
NetworkParameter.channel_mask
]
await self._api[NetworkParameter.aps_extended_panid]
await self._api[NetworkParameter.trust_center_address]
await self._api[NetworkParameter.security_mode]
(self._channel,) = await self._api[NetworkParameter.current_channel]
if self.state.network_information.tc_link_key is None:
self.state.network_information.tc_link_key = zigpy.state.Key()
(self.state.network_information.tc_link_key.partner_ieee,) = await self._api[
NetworkParameter.trust_center_address
]
(self.state.network_information.security_level,) = await self._api[
NetworkParameter.security_mode
]
(self.state.network_information.channel,) = await self._api[
NetworkParameter.current_channel
]
await self._api[NetworkParameter.protocol_version]
(self._nwk_update_id,) = await self._api[NetworkParameter.nwk_update_id]
(self.state.network_information.nwk_update_id,) = await self._api[
NetworkParameter.nwk_update_id
]

coordinator = await DeconzDevice.new(
self,
Expand Down Expand Up @@ -434,6 +453,6 @@ async def new(cls, application, ieee, nwk, version: int, device_path: str):
ep.out_clusters = from_ep.out_clusters
else:
application.devices[ieee] = dev
await dev._initialize()
await dev.initialize()

return dev

0 comments on commit 7e87043

Please sign in to comment.