mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
[map][scale] Fix localization (#14825)
The wrong key was used in the `cachedTransformations` map. Instead of the correctyl localized UID from the registry the provided transformation function was used. Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ public class MapTransformationService
|
||||
if (!cachedTransformations.containsKey(transformation.getUID())) {
|
||||
importConfiguration(transformation);
|
||||
}
|
||||
Properties properties = cachedTransformations.get(function);
|
||||
Properties properties = cachedTransformations.get(transformation.getUID());
|
||||
if (properties != null) {
|
||||
String target = properties.getProperty(source);
|
||||
|
||||
|
||||
+1
-1
@@ -149,7 +149,7 @@ public class ScaleTransformationService
|
||||
if (!cachedTransformations.containsKey(transformation.getUID())) {
|
||||
importConfiguration(transformation);
|
||||
}
|
||||
Map<@Nullable Range, String> data = cachedTransformations.get(function);
|
||||
Map<@Nullable Range, String> data = cachedTransformations.get(transformation.getUID());
|
||||
|
||||
if (data != null) {
|
||||
String target;
|
||||
|
||||
Reference in New Issue
Block a user