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

configuration/items: use more specific item types #2195

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

dilyanpalauzov
Copy link
Contributor

I think having all examples using as specific item types, as possible, utilizing the default UoM, is a good practice.

The wording “If no state presentation and no square brackets are given…” leaves unclear what happens, if state presentation is missing, but square brackets are present. This is refined here.

Alternative good wordings will be just “If no state presentation is given”, or “If no square brackets are given”.

Copy link

netlify bot commented Jan 1, 2024

Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).

Name Link
🔨 Latest commit 69a8e90
🔍 Latest deploy log https://app.netlify.com/sites/openhab-docs-preview/deploys/659455ddabfaec0008deb30c
😎 Deploy Preview https://deploy-preview-2195--openhab-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dilyanpalauzov
Copy link
Contributor Author

The information about what happens, when the square brackets are absent, is not universally correct:

```

If no state presentation and no square brackets are given, the Item will not provide a textual presentation of its internal state (i.e. in UIs no state is shown).
If no state presentation is given, or there is no text between the square brackets, the the Item will not provide a textual presentation of its internal state (i.e. in UIs no state is shown).
Copy link
Contributor

Choose a reason for hiding this comment

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

the the

I think having all examples using as specific item types, as possible,
utilizing the default UoM, is a good practice.

The wording “If no state presentation and no square brackets are given…”
leaves unclear what happens, if state presentation is missing, but square
brackets are present.  This is refined here.
Copy link
Contributor

@stefan-hoehn stefan-hoehn left a comment

Choose a reason for hiding this comment

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

LGTM now.

@stefan-hoehn stefan-hoehn added this to the 4.2 milestone Jan 7, 2024
@stefan-hoehn stefan-hoehn merged commit c957630 into openhab:main Jan 7, 2024
5 checks passed
@dilyanpalauzov dilyanpalauzov deleted the nosquare_brackets branch January 7, 2024 12:48
pgfeller pushed a commit to pgfeller/openhab-docs that referenced this pull request Jan 15, 2024
I think having all examples using as specific item types, as possible,
utilizing the default UoM, is a good practice.

The wording “If no state presentation and no square brackets are given…”
leaves unclear what happens, if state presentation is missing, but square
brackets are present.  This is refined here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants