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

[remoteopenhab] Handle IllegalArgumentException when building channels #9638

Merged
merged 1 commit into from
Jan 3, 2021

Conversation

lolodomo
Copy link
Contributor

@lolodomo lolodomo commented Jan 2, 2021

This PR fixes the failing of the binding reported by a user on the forum because he has several items with the same name on his remote server. I don't know how it is possible to define several items with the same name (I was not able to do it) but by the way, this PR makes sure to catch this exception (IllegalArgumentException), log a message that should help the user, and put the thing to OFFLINE in case the creation of the channels is failing due to this exception.

Signed-off-by: Laurent Garnier [email protected]

@Hilbrand Hilbrand added the bug An unexpected problem or unintended behavior of an add-on label Jan 2, 2021
@lolodomo
Copy link
Contributor Author

lolodomo commented Jan 2, 2021

The build in Feed binding integration tests. No link with my PR.

Copy link
Contributor

@cpmeister cpmeister left a comment

Choose a reason for hiding this comment

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

LGTM

@cpmeister cpmeister merged commit 270f7b6 into openhab:main Jan 3, 2021
@cpmeister cpmeister added this to the 3.1 milestone Jan 3, 2021
@lolodomo lolodomo deleted the remoteoh_buildchannelsfailing branch January 3, 2021 07:54
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
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.

3 participants