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

[habpanel] Use commandDescription instead of stateDescription for selection list #1688

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

mhilbush
Copy link
Contributor

@mhilbush mhilbush commented Feb 6, 2023

Fixes #1686

To be consistent with how Basic UI works, use commandDescription to populate the list used by the Selection widget. This will ensure that a selection list will be presented to the user if the item has state options or command options. This works because openHAB internally copies the state options to the command options when command options don't exist on the item.

Signed-off-by: Mark Hilbush mark@hilbush.com

Signed-off-by: Mark Hilbush <mark@hilbush.com>
@mhilbush mhilbush requested a review from ghys as a code owner February 6, 2023 21:38
Signed-off-by: Mark Hilbush <mark@hilbush.com>
@ghys ghys added bug Something isn't working habpanel ui labels Feb 9, 2023
Copy link
Member

@ghys ghys left a comment

Choose a reason for hiding this comment

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

Makes sense and much more logical, thanks!

@ghys ghys merged commit 2cccc67 into openhab:main Feb 9, 2023
@mhilbush
Copy link
Contributor Author

@lolodomo Would this be a candidate to back port to 3.4 if there's another patch release.

kaikreuzer pushed a commit that referenced this pull request Feb 12, 2023
…ection list (#1688)

Signed-off-by: Mark Hilbush <mark@hilbush.com>
@kaikreuzer
Copy link
Member

I have cherry-picked this fix to the 3.4.x branch.

@kaikreuzer kaikreuzer added the patch A PR that has been cherry-picked to a patch release branch label Feb 13, 2023
@kaikreuzer kaikreuzer added this to the 4.0 milestone Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working habpanel ui patch A PR that has been cherry-picked to a patch release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[habpanel] Inconsistency in how state/command options are handled
3 participants