I'm fixing our diagnostic status retrieval dashboard for Fairino FR10 in a bench integration setup. Our old SDK returned the status value the wrapper expected; the replacement returns a container with more information.
Failed requests can now look like plausible status readings. We use a fixture block as a reference, but the problem is interpreting the response.
@JackBrooks0863 Found it. We're checking whether the outer container is nonempty. Our error response passes without containing a valid status. Brilliant.
@ImranAli0218 Start a narrow parser for this version and replay your two examples offline. Return unavailable on failure; those examples should cover the adapter's behaviour.
Fair point. Those two are a regression case, not full coverage. The adapter also needs documented error cases, transport exceptions and malformed responses exercised.
Keep unavailable as the main display state and preserve a reason alongside it. Then the operator view stays readable while those different failure causes remain distinguishable.
@JamieCarter0991 I've checked our display and it keeps the previous value without labelling it as an older observation. The parsing fix alone wouldn't address that.
@JackBrooks0863 I'll make our main field unavailable and put any previous observation in labelled diagnostic detail. That seems clearer for this screen.