-
-
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
[squeezebox] Add new channels for additional tags #14201
Conversation
Signed-off-by: Mark Hilbush <mark@hilbush.com>
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.
Thank you. Looks simple and good to me! I have added comments for a request to use camelCase for the two multi-worded new channels.
...ezebox/src/main/java/org/openhab/binding/squeezebox/internal/SqueezeBoxBindingConstants.java
Outdated
Show resolved
Hide resolved
...ezebox/src/main/java/org/openhab/binding/squeezebox/internal/SqueezeBoxBindingConstants.java
Outdated
Show resolved
Hide resolved
...main/java/org/openhab/binding/squeezebox/internal/handler/SqueezeBoxPlayerEventListener.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.squeezebox/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.squeezebox/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.squeezebox/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.squeezebox/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
...x/src/main/java/org/openhab/binding/squeezebox/internal/handler/SqueezeBoxServerHandler.java
Outdated
Show resolved
Hide resolved
Ha ha. I actually started down the camelCase path. But I changed it to be consistent with the tag naming convention in the LMS, and also because I didn't want to change remotetitle and coverartdata to camelCase, as that would be a breaking change. I admit that the binding is a bit inconsistent in how the channels are named. Some are camelCase and some are not. But I'm happy to change the new channels to camelCase if that's the recommendation. Just let me know. |
Correct, it's a pickle staying consistent and conforming to naming conventions and at the same time without breaking backwards compatibility. 🙂 However, one thing we shouldn't do is adopting naming conventions from the API's we implement in bindings. We have our own, making openHAB consistent across bindings and being API agnostic.
For consistency we will have to choose one of the two (camelCase or lowercase). See below.
Yes, that's the recommendation. And since it's already in use for some of the channels, this would be the preferred way going forward. See also https://community.openhab.org/t/naming-convention-for-channels/128841/10. Had all the existing channel been lowercased (or underscore_separated or dash-separated), the situation would be different. Here I would recommend to prioritize consistency higher than the current recommendation. |
Signed-off-by: Mark Hilbush <mark@hilbush.com>
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.
LGTM
* New channels for additional tags Signed-off-by: Mark Hilbush <mark@hilbush.com>
* New channels for additional tags Signed-off-by: Mark Hilbush <mark@hilbush.com>
Resolves #13353
Added channels for the following:
Signed-off-by: Mark Hilbush mark@hilbush.com