Skip to content

Commit 8bf6dfa

Browse files
authored
fix representation of group id in binds_get
group id is unit16 in DstAddress.nwk, needs conversion to hex so that we can prefix with 0x
1 parent 458ba50 commit 8bf6dfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/zha_toolkit/binds.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ async def binds_get(
612612
if binding.DstAddress.addrmode == 1:
613613
dst_info = {
614614
"addrmode": binding.DstAddress.addrmode,
615-
"group": f"0x{binding.DstAddress.nwk}",
615+
"group": f"0x{binding.DstAddress.nwk:04X}",
616616
}
617617
elif binding.DstAddress.addrmode == 3:
618618
dst_info = {

0 commit comments

Comments
 (0)