-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Support press and release buttons in sitemap generator #4204
Conversation
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Looks good but you will have to reinject the code for splitting press and release commands as I removed it from #4183 |
@lolodomo I don't know what happened, but the push of my commit seems to have been incomplete. I was sure I did the code for it. Should be OK now. |
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
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
Related to openhab/openhab-core#4183. Depends on openhab/openhab-core#4204. This PR implements press/release button support. Refactor code to allow proper quoting of arguments in mappings and conditions. Quotes are now preserved, and therefore they need to be removed in core at usage (openhab/openhab-core#4204). --------- Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Depends on: #4183
This PR adds support for press and release buttons in the sitemap generator.
It will required further testing after merging Depends on: #4183
The sitemap generator in the UI so far was stripping quotes from arguments in mappings and conditions sent to core.
As more functionality is added to the sitemap syntax, this is leading to problems to correctly interpret the arguments containing complex syntax:
To get over this limit, quote stripping should be removed on the UI side, but that means it needs to be done in core when creating the widget from the UIComponent.
Related to: openhab/openhab-webui#2553