Skip to content

Commit

Permalink
Merge pull request #107 from mdeweerd/fix_hex_to_int
Browse files Browse the repository at this point in the history
Convert hex group value to int - fix #10
  • Loading branch information
mdeweerd authored Nov 20, 2022
2 parents 30bba85 + 7d4f81a commit 06c31a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/zha_toolkit/binds.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ async def binds_remove_all(

dst_addr = MultiAddress()
dst_addr.addrmode = addr_mode
dst_addr.nwk = t.uint16_t(binding["dst"]["group"])
dst_addr.nwk = t.uint16_t(u.str2int(binding["dst"]["group"]))
if "dst_ieee" in binding["dst"]:
# Probably not useful, but for backward "compatibility"
dst_ieee = t.EUI64.convert(binding["dst"]["dst_ieee"])
Expand Down

0 comments on commit 06c31a6

Please sign in to comment.