Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ecovacs] Handle invalid JSON responses properly #16466

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

maniac103
Copy link
Contributor

The API has differing responses depending on device type. If our understanding of the JSON format differs from that of the API, make sure to properly set the thing OFFLINE and to log a meaningful message.

Related to #16187

@maniac103 maniac103 marked this pull request as ready for review March 6, 2024 11:58
@lolodomo lolodomo added the bug An unexpected problem or unintended behavior of an add-on label Mar 11, 2024
The API has differing responses depending on device type. If our
understanding of the JSON format differs from that of the API, make sure
to properly set the thing OFFLINE and to log a meaningful message.

Related to openhab#16187

Signed-off-by: Danny Baumann <[email protected]>
@maniac103 maniac103 force-pushed the ecovacs-handle-invalid-response branch from 8b04bf6 to 8ee4bf8 Compare March 12, 2024 13:05
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@lolodomo lolodomo merged commit ba0cf3f into openhab:main Mar 12, 2024
3 checks passed
@lolodomo lolodomo added this to the 4.2 milestone Mar 12, 2024
pgfeller pushed a commit to pgfeller/openhab-addons that referenced this pull request Mar 12, 2024
The API has differing responses depending on device type. If our
understanding of the JSON format differs from that of the API, make sure
to properly set the thing OFFLINE and to log a meaningful message.

Related to openhab#16187

Signed-off-by: Danny Baumann <[email protected]>
Signed-off-by: Patrik Gfeller <[email protected]>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
The API has differing responses depending on device type. If our
understanding of the JSON format differs from that of the API, make sure
to properly set the thing OFFLINE and to log a meaningful message.

Related to openhab#16187

Signed-off-by: Danny Baumann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants