Commit d32e245 1 parent 3112960 commit d32e245 Copy full SHA for d32e245
File tree 1 file changed +11
-3
lines changed
custom_components/zha_toolkit
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -310,13 +310,15 @@ async def bind_ieee(
310
310
311
311
for src_ep in src_endpoints :
312
312
LOGGER .debug (
313
- "0x%04x: binding %s/EP:%s, out-cluster 0x%04X to %s/EP:%s" ,
313
+ "0x%04x: binding %s/EP:%s, out-cluster 0x%04X to %s/EP:%s"
314
+ " (%r)" ,
314
315
src_dev .nwk ,
315
316
str (src_dev .ieee ),
316
317
src_ep ,
317
318
src_out_cluster ,
318
319
str (dst_dev .ieee ),
319
320
dst_epid ,
321
+ dst_addr ,
320
322
)
321
323
res = await u .retry_wrapper (
322
324
zdo .request ,
@@ -365,7 +367,11 @@ async def bind_ieee(
365
367
for ep_id , ep in dst_dev .endpoints .items ():
366
368
if ep_id == 0 :
367
369
continue
368
- if isCoordinatorTarget or (src_in_cluster in ep .out_clusters ):
370
+ if (
371
+ isCoordinatorTarget
372
+ or (src_in_cluster in ep .out_clusters )
373
+ and (u_dst_epid is None or u_dst_epid == ep_id )
374
+ ):
369
375
dst_epid = ep_id
370
376
break
371
377
if not dst_epid :
@@ -374,13 +380,15 @@ async def bind_ieee(
374
380
375
381
for src_ep in src_endpoints :
376
382
LOGGER .debug (
377
- "0x%04X: binding %s/EP:%s, in-cluster: 0x%04X to %s/EP:%s" ,
383
+ "0x%04X: binding %s/EP:%s, in-cluster: 0x%04X to %s/EP:%s"
384
+ " (%r)" ,
378
385
src_dev .nwk ,
379
386
str (src_dev .ieee ),
380
387
src_ep ,
381
388
src_in_cluster ,
382
389
str (dst_dev .ieee ),
383
390
dst_epid ,
391
+ dst_addr ,
384
392
)
385
393
if src_ep not in results :
386
394
results [src_ep ] = {}
You can’t perform that action at this time.
0 commit comments