-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Sitemap Label Colour not working #2082
Comments
In your exemple, I see an unexpected space before the color. Try replacing " red" by "red". |
Unlikely, as this only touched the parser to convert from the sitemap code to the internal representation. The space appears when converting from the UI presentation to the internal and text representation. I will have a look at it. |
It is probably a regression from openhab/openhab-core#3769, in itself created to solve #1487 (comment). |
When generating the sitemap DSL from a UI configured sitemap with color conditions, if the color in the condition has a leading space, it will be included in the color string. While this does not have an impact on the sitemap functionality (it works), it is an issue if one would copy this sitemap to a sitemap file. This PR strips the blanks from the color. See #2082 and the example provided there. Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Which UI are you reporting an issue for?
The problem
Conditional Label colours no longer work on Sitemaps, though simply specifying a colour does work. I'm not sure at which point this regressed.
This setup
Produces:
The UI generates this code:
I have checked in Firefox, Chrome, and through the Android App.
Expected behavior
I'm expecting the above example to show the text "Kitchen Lights" in red on sitemap.
Steps to reproduce
Your environment
Browser console
Browser network traffic
Additional information
The text was updated successfully, but these errors were encountered: