Skip to content

Commit

Permalink
TCLK repair requires the network be up
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Oct 19, 2023
1 parent 99ceaa3 commit 5e535e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bellows/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,6 @@ async def _ensure_network_running(self) -> bool:
async def start_network(self):
ezsp = self._ezsp

if await repairs.fix_invalid_tclk_partner_ieee(ezsp):
await self._reset()

try:
await self.register_endpoints()
except StackAlreadyRunning:
Expand All @@ -189,6 +186,11 @@ async def start_network(self):

await self._ensure_network_running()

if await repairs.fix_invalid_tclk_partner_ieee(ezsp):
await self._reset()
await self.register_endpoints()
await self._ensure_network_running()

if self.config[zigpy.config.CONF_SOURCE_ROUTING]:
await ezsp.set_source_routing()

Expand Down

0 comments on commit 5e535e3

Please sign in to comment.