Skip to content

Commit

Permalink
Ensure child restoration works
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Dec 26, 2023
1 parent 6760ace commit 9d7a11e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bellows/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,12 +535,14 @@ async def write_network_info(
index,
ezsp.types.ChildData(
eui64=child_eui64,
# XXX: what does this do?
type=t.EmberNodeType.MOBILE_END_DEVICE,
# XXX: why does EmberZNet also have `MOBILE_END_DEVICE`?
type=t.EmberNodeType.SLEEPY_END_DEVICE,
id=self.state.network_info.nwk_addresses[child_eui64],
# The rest are unused when setting child data
phy=0,
power=255,
timeout=255,
power=0,
timeout=0,
**({"timeout_remaining": 0} if ezsp.ezsp_version >= 10 else {}),
),
)
index += 1
Expand Down

0 comments on commit 9d7a11e

Please sign in to comment.