openhab-core/bundles/org.openhab.core.ui
lolodomo d22e14a1e4
Make input formatting for transformations consistent everywhere (#4203)
Use item state formatter to format input of transformation, meaning using state.format(format) instead of String.format(format, state.toString())
This was already the case in sitemap API but not in other APIs used by Main UI.

Make sure to call transformation even for NULL and UNDEF states.
It was not the case in one API used by Main UI.

When calling transformation and state is NULL or UNDEF, do not apply format to the input value and do not replace by "-".
That means the transformation will be called with "NULL" or "UNDEF".
Sitemap API was calling the transformation using a pattern containing "-".

Fix #4101
Also related to discussion in openhab/openhab-addons#13777

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-06-26 21:25:13 +02:00
..
src Make input formatting for transformations consistent everywhere (#4203) 2024-06-26 21:25:13 +02:00
.classpath Update Eclipse .classpath files (#3250) 2022-12-22 14:14:35 +01:00
.project mavenize openHAB and integrate mavenized ESH repository (#467) 2019-01-28 13:07:31 +01:00
bnd.bnd Revert "Upgrade XChart to 3.8.4 (#3291)" (#3720) 2023-07-21 17:21:14 +02:00
NOTICE Provide correct version information for XChart in NOTICE (#3721) 2023-07-21 22:07:20 +02:00
pom.xml Apply spotless after release, resolve bundles (#3953) 2023-12-22 23:14:28 +01:00