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.
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: https://github.com/home-assistant/core/issues/95669