-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[netatmo] Added oauth2client to feature.xml #16181
Conversation
Signed-off-by: [email protected] <[email protected]>
@@ -4,6 +4,7 @@ | |||
|
|||
<feature name="openhab-binding-netatmo" description="Netatmo Binding" version="${project.version}"> | |||
<feature>openhab-runtime-base</feature> | |||
<feature>openhab-core-auth-oauth2client</feature> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't be necessary.
openhab-runtime-base
depends on openhab-transport-http
which depends on openhab-core-auth-oauth2client
If it is an issue for this add-on it's also an issue for all other add-ons using the oauth2client which would also need a fix.
The root cause is fixed with openhab/openhab-core#4012. |
@wborn - I'm wondering why the Netatmo binding works for me. It seems no other bindings have this feature explicitly declared, and I see this: openhab> feature:list | grep oauth
openhab-core-auth-oauth2client x 4.1.0 x x Uninstalled x distro-4.1.0 x I guess it shouldn't really work? Or maybe it works because I already have a refresh token and haven't needed to go through the authorization flow for some time? Additionally, multiple bindings declare grep -R "openhab-transport-http" -B 2 -A 2 Example: openhab-addons/bundles/org.openhab.binding.deconz/src/main/feature/feature.xml Lines 5 to 10 in ce1f366
Is it unneeded, if |
Unfortunately I have not found any info on how After a bit of testing it looks like Karaf installs such features on demand when a feature is installed that needs it. So it probably is only an issue for users who install JARs by copying them in the
The So it should be safe to remove |
The openhab-transport-http feature dependency is redundant since OH 2.3 when it was added to the openhab-runtime-base feature dependencies. See: * openhab/openhab-core#344 * openhab#16181 (comment) Signed-off-by: Wouter Born <[email protected]>
The openhab-transport-http feature dependency is redundant since OH 2.3 when it was added to the openhab-runtime-base feature dependencies. See: * openhab/openhab-core#344 * #16181 (comment) Signed-off-by: Wouter Born <[email protected]>
The openhab-transport-http feature dependency is redundant since OH 2.3 when it was added to the openhab-runtime-base feature dependencies. See: * openhab/openhab-core#344 * openhab#16181 (comment) Signed-off-by: Wouter Born <[email protected]>
The openhab-transport-http feature dependency is redundant since OH 2.3 when it was added to the openhab-runtime-base feature dependencies. See: * openhab/openhab-core#344 * openhab#16181 (comment) Signed-off-by: Wouter Born <[email protected]> Signed-off-by: Jørgen Austvik <[email protected]>
The openhab-transport-http feature dependency is redundant since OH 2.3 when it was added to the openhab-runtime-base feature dependencies. See: * openhab/openhab-core#344 * openhab#16181 (comment) Signed-off-by: Wouter Born <[email protected]>
I faced not started oauth2client, preventing the NetatmoHandlerFactory to initialize while working on this.
This does not seem to hurt production that much because other binding may have required the oauth2client prior to Netatmo Binding.
I stumbled on this in the morning.