Skip to content

Improve handling of unexpected device responses #1913

Description

@rytilahti

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions