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
2 changes: 1 addition & 1 deletion tests/test_network_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ async def write_parameter(param, *args):
command=None,
)
},
{"network_key.tx_counter": 0},
{"network_key.tx_counter": 1073741824},
{},
),
(
Expand Down
5 changes: 5 additions & 0 deletions zigpy_deconz/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,11 @@ async def load_network_info(self, *, load_devices=False):
)
except zigpy_deconz.exception.CommandError as ex:
assert ex.status == Status.UNSUPPORTED
LOGGER.debug(
"Conbee firmware is too old and does not support reading the frame"
" counter, picking a large value instead"
)
network_info.network_key.tx_counter = 2**30

network_info.tc_link_key = zigpy.state.Key()
network_info.tc_link_key.partner_ieee = await self._api.read_parameter(
Expand Down
Loading