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] Adding base URL to config to allow for manually adding thing #13251

Merged
merged 3 commits into from
Aug 13, 2022

Conversation

haavar
Copy link
Contributor

@haavar haavar commented Aug 12, 2022

This PR will allow for things to be manually added, and for the address of the konnected panel to be updated.

Before this change there is no configuration for the address of the konnected panel. If a panel is manually added the thing is not functional, and there is a null pointer exception on initialization.

I renamed the fields ipAddress and host to baseUrl for clarity. The field contains a URL, and not an IP address. I'm not sure if this breaks backwards compatibility, but recreation of the konnected things is anyway needed for openhab version 3.4.0.

Signed-off-by: Haavar Valeur <haavar@haavar.com>
@lolodomo lolodomo added the enhancement An enhancement or new feature for an existing add-on label Aug 12, 2022
Haavar Valeur added 2 commits August 12, 2022 15:36
…seUrl to be consistent.

Signed-off-by: Haavar Valeur <haavar@haavar.com>
Signed-off-by: Haavar Valeur <haavar@haavar.com>
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 4b5bbab into openhab:main Aug 13, 2022
@lolodomo lolodomo added this to the 3.4 milestone Aug 13, 2022
@lolodomo
Copy link
Contributor

You already prepared an alert for the release notes, fine. Maybe you can adjust a little the description to be more in line with this new PR ?

@jlaur
Copy link
Contributor

jlaur commented Aug 13, 2022

You already prepared an alert for the release notes, fine. Maybe you can adjust a little the description to be more in line with this new PR ?

Also the README should be updated. At least things example where ipAddress is still mentioned.

@haavar haavar deleted the manual_add branch August 15, 2022 04:47
leifbladt pushed a commit to leifbladt/openhab-addons that referenced this pull request Oct 15, 2022
…ing (openhab#13251)

* Adding base URL to config to allow for manually adding thing
* Simplified reading of the base URL configuration. Renamed field to baseUrl to be consistent.
* Changed config parameters 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
…ing (openhab#13251)

* Adding base URL to config to allow for manually adding thing
* Simplified reading of the base URL configuration. Renamed field to baseUrl to be consistent.
* Changed config parameters 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
…ing (openhab#13251)

* Adding base URL to config to allow for manually adding thing
* Simplified reading of the base URL configuration. Renamed field to baseUrl to be consistent.
* Changed config parameters to camel case

Signed-off-by: Haavar Valeur <haavar@haavar.com>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
…ing (openhab#13251)

* Adding base URL to config to allow for manually adding thing
* Simplified reading of the base URL configuration. Renamed field to baseUrl to be consistent.
* Changed config parameters 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
…ing (openhab#13251)

* Adding base URL to config to allow for manually adding thing
* Simplified reading of the base URL configuration. Renamed field to baseUrl to be consistent.
* Changed config parameters 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
enhancement An enhancement or new feature for an existing add-on (potentially) not backward compatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants