-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fix documentation, grammar, and spelling in bindings W-Z #19603
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5d8d94c
W-bindings
lsiepel 31f5db3
X-bindings
lsiepel b437ec5
Y-bindings
lsiepel 1a700af
Z-bindings
lsiepel 0db73fe
Wiz review
lsiepel 1083090
Update bundles/org.openhab.binding.wemo/README.md
lsiepel 8689a8a
Fix thing => Thing
lsiepel cfb3487
Table alignment W-Z
lsiepel 9ac2063
Fixed wunderground
lsiepel 8c845c5
Fix review comments
lsiepel 57efe79
postalCode
lsiepel 98b732c
Apply suggestions from code review
lsiepel b73a8c8
Remove excess spaces
jlaur b487a2d
Split line into one sentence per line
jlaur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think it should rather be changed to
required="false"here, since it has a default value:openhab-addons/bundles/org.openhab.binding.warmup/src/main/resources/OH-INF/thing/thing-types.xml
Lines 63 to 67 in 211f0e2
Uh oh!
There was an error while loading. Please reload this page.
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.
Are you sure?
Up to now, i thought that having a default or not. Required also signals the UI to have a value.
But now i wonder if that is true, How ould one unset a default value. E.g. remove it from the jsondb to stick to the default value from the binding. aargh :-/
Uh oh!
There was an error while loading. Please reload this page.
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.
Example (defaults to
required="false"):openhab-addons/bundles/org.openhab.binding.energidataservice/src/main/resources/OH-INF/config/service.xml
Lines 17 to 25 in 211f0e2
openhab-addons/bundles/org.openhab.binding.energidataservice/src/main/java/org/openhab/binding/energidataservice/internal/config/EnergiDataServiceConfiguration.java
Lines 34 to 37 in 211f0e2
Never set:
Click to upper right corner to clear:
Save - and it's back to default. Code tab:
Remove it:
And save. It's back.
Warmup binding:
Deleting the "0", now trying to delete "6", but that instantly causes it to go back to 60:
If I delete it in the code tab, it automatically is restored. File-based configuration seems to work as well:
So here the only problem seems to be that you can't actually delete it in the UI.
I think it's most logical to leave parameters having a default value as optional, since the binding can then just use the default value. I think there used to be more annoying issues, but right now can't remember or reproduce.
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.
Anyway, that's how the binding is now, and you just updated the documentation to reflect that, so it's fine for this PR.