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

Fix methods dict keyerror #153

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

allistermaguire
Copy link
Contributor

Fixes #152

The easiest solution was to guard against key errors. I thought about handling this particular response typo, but other non casing could exist, so went with logging it out.

Waiting on extra info for #151

Copy link
Owner

@rytilahti rytilahti left a comment

Choose a reason for hiding this comment

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

This looks good to me and improves robustness so I'll just merge this right away. We can still wait for confirmation that it's working as expected, or alternatively prepare a new release ready to ship with homeassistant 2024.4. What do you think? :-)

@rytilahti rytilahti merged commit 826cbff into rytilahti:master Mar 25, 2024
4 checks passed
@allistermaguire
Copy link
Contributor Author

Ok. It does fix #152 so that is confirmed. I think if you don't mind preparing a release we try and get it in HA 2024.4.

@rytilahti rytilahti mentioned this pull request Mar 31, 2024
@rytilahti
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors with version 0.16.1 -> SRS-XB402g
2 participants