Some devices are known to return unexpected payloads in some conditions and the current code is not robust enough to check against such and raise more appropriate exceptions.
The protocol code should be adjusted to wrap unexpected exceptions inside DeviceException to make it easier for downstreams to handle.
Case example: home-assistant/core#95669
Some devices are known to return unexpected payloads in some conditions and the current code is not robust enough to check against such and raise more appropriate exceptions.
The protocol code should be adjusted to wrap unexpected exceptions inside
DeviceExceptionto make it easier for downstreams to handle.Case example: home-assistant/core#95669