Skip to content

Commit

Permalink
Alternative method for rejoin tested
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Jan 24, 2022
1 parent a5500af commit 196433e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/zha_toolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ async def command_handler_rejoin(

# Next method is not working - rejoin is 0:
# res = await src.zdo.request(0x0034, src.ieee, 0x01)
res = await src.zdo.Mgmt_Leave_req(remove_children=False, rejoin=True)
res = await src.zdo.leave(remove_children=False, rejoin=True)
event_data['result'] = res
LOGGER("%s: leave and rejoin result: %s", src, ieee, res)
LOGGER.debug("%s: leave and rejoin result: %s", src, ieee, res)


def command_handler_get_zll_groups(*args, **kwargs):
Expand Down

0 comments on commit 196433e

Please sign in to comment.