Skip to content

Commit 26f7a1b

Browse files
committed
fix(homeassistant): Fix homeassistant commissioning of light_eth
Fix light_eth example of rs-matter-stack. fn network_interfaces() gets called with ArrayAttributeRead::ReadOne index beyond the length of the interfaces present. Return a ConstraintError when no netif was matched. The change fixes this error message which aborts the commissioning process: rs_matter::respond] Responder: Handler 0 / exchange 7::1: Abandoned because of error Error::InvalidAction
1 parent d502046 commit 26f7a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rs-matter/src/dm/clusters/gen_diag.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl ClusterHandler for GenDiagHandler<'_> {
241241
})?;
242242

243243
parent_builder.take().ok_or_else(|| {
244-
ErrorCode::InvalidAction.into() // TODO
244+
ErrorCode::ConstraintError.into() // TODO
245245
})
246246
}
247247
ArrayAttributeRead::ReadNone(builder) => builder.end(),

0 commit comments

Comments
 (0)