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

[airq] Improve error handling #16694

Merged
merged 1 commit into from Apr 28, 2024
Merged

[airq] Improve error handling #16694

merged 1 commit into from Apr 28, 2024

Conversation

fwolter
Copy link
Member

@fwolter fwolter commented Apr 28, 2024

The current implementation shows "probably wrong pasword" on most errors, but not all of them are related to a wrong password. E.g. a network error or failing of the decryption caused by limited JVM crypto strength, due to US import restrictions 🙈.

Also, some null warnings were fixed, JSON syntax errors are handled, and network operations in initialize() were removed.

And when the connection failed, the ThingStatus was flapping between ONLINE and OFFLINE, although a connection has never been established.

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
@fwolter fwolter added the enhancement An enhancement or new feature for an existing add-on label Apr 28, 2024
@fwolter fwolter requested a review from aurelio1 as a code owner April 28, 2024 16:27
@lsiepel lsiepel merged commit 1a727f8 into openhab:main Apr 28, 2024
5 checks passed
@lsiepel lsiepel added this to the 4.2 milestone Apr 28, 2024
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@fwolter fwolter deleted the airq branch April 28, 2024 19:55
@fwolter
Copy link
Member Author

fwolter commented Apr 28, 2024

Thanks!

lo92fr pushed a commit to lo92fr/openhab-addons that referenced this pull request Apr 30, 2024
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants