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

[Konnected] Using default onvalue if configured is null #13354

Merged
merged 5 commits into from
Sep 6, 2022

Conversation

haavar
Copy link
Contributor

@haavar haavar commented Sep 4, 2022

During testing I found that sometimes configuration for onvalue can be null.

Maybe it's a bad assumption, but I assumed that the configuration would be populated with the default value set in thing-types.xml. That does not seem to be the case, and the application need to fall back to the default value.

@jlaur jlaur added the bug An unexpected problem or unintended behavior of an add-on label Sep 4, 2022
@haavar haavar force-pushed the null_onvalue branch 2 times, most recently from 96956ba to f252a86 Compare September 5, 2022 06:00
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

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

Thanks! I have added a few comments. Also checked openhab/openhab-distro#1412, and it seems like existing compatibility note also covers these breaking changes.

Haavar Valeur and others added 5 commits September 5, 2022 20:04
Signed-off-by: Haavar Valeur <haavar@haavar.com>
…r names to camel case

Signed-off-by: Haavar Valeur <haavar@haavar.com>
…F/thing/thing-types.xml

Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Haavar Valeur <haavar@haavar.com>
…F/thing/thing-types.xml

Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Haavar Valeur <haavar@haavar.com>
Signed-off-by: Haavar Valeur <haavar@haavar.com>
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

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

LGTM

@jlaur jlaur merged commit fe25216 into openhab:main Sep 6, 2022
@jlaur jlaur added this to the 3.4 milestone Sep 6, 2022
leifbladt pushed a commit to leifbladt/openhab-addons that referenced this pull request Oct 15, 2022
* Using default onvalue if configured is null
* Using DTO for channel configuration. Changing channel config parameter names to camel case

Signed-off-by: Haavar Valeur <haavar@haavar.com>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
* Using default onvalue if configured is null
* Using DTO for channel configuration. Changing channel config parameter names to camel case

Signed-off-by: Haavar Valeur <haavar@haavar.com>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
* Using default onvalue if configured is null
* Using DTO for channel configuration. Changing channel config parameter names to camel case

Signed-off-by: Haavar Valeur <haavar@haavar.com>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
marcelGoerentz pushed a commit to marcelGoerentz/openhab-addons that referenced this pull request Nov 14, 2022
* Using default onvalue if configured is null
* Using DTO for channel configuration. Changing channel config parameter names to camel case

Signed-off-by: Haavar Valeur <haavar@haavar.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
* Using default onvalue if configured is null
* Using DTO for channel configuration. Changing channel config parameter names to camel case

Signed-off-by: Haavar Valeur <haavar@haavar.com>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Feb 28, 2023
* Using default onvalue if configured is null
* Using DTO for channel configuration. Changing channel config parameter names to camel case

Signed-off-by: Haavar Valeur <haavar@haavar.com>
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