From 7d4f81a6f46c76f5928de861860b9cb21be513cb Mon Sep 17 00:00:00 2001 From: mdeweerd Date: Sun, 20 Nov 2022 09:08:10 +0100 Subject: [PATCH] Convert hex group value to int - fix #10 --- custom_components/zha_toolkit/binds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/zha_toolkit/binds.py b/custom_components/zha_toolkit/binds.py index 7b608b3..a4353e6 100644 --- a/custom_components/zha_toolkit/binds.py +++ b/custom_components/zha_toolkit/binds.py @@ -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"])