]> git.basschouten.com Git - openhab-addons.git/commitdiff
[miio] fix typo (#10894)
authorMarcel <marcel@verpaalen.com>
Mon, 21 Jun 2021 19:16:34 +0000 (21:16 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Jun 2021 19:16:34 +0000 (21:16 +0200)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoBasicChannel.java
bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java

index 9571e154fe3f30e25817f4611ac9d5f541fc9287..a012e4da28869b04f765aee96de70ea37f8de710 100644 (file)
@@ -68,7 +68,7 @@ public class MiIoBasicChannel {
     private @Nullable String channelCustomRefreshCommand;
     @SerializedName("transformation")
     @Expose
-    private @Nullable String transfortmation;
+    private @Nullable String transformation;
     @SerializedName("ChannelGroup")
     @Expose
     private @Nullable String channelGroup;
@@ -217,12 +217,12 @@ public class MiIoBasicChannel {
         this.miIoDeviceActions = miIoDeviceActions;
     }
 
-    public @Nullable String getTransfortmation() {
-        return transfortmation;
+    public @Nullable String getTransformation() {
+        return transformation;
     }
 
-    public void setTransfortmation(@Nullable String transfortmation) {
-        this.transfortmation = transfortmation;
+    public void setTransformation(@Nullable String transformation) {
+        this.transformation = transformation;
     }
 
     public @Nullable String getCategory() {
index 101e7a7895f088db420ebf35fc930b2f8b96f34a..72e5bdc588b84d17db99961f7f2307819388cc97 100644 (file)
@@ -558,7 +558,7 @@ public class MiIoBasicHandler extends MiIoAbstractHandler {
             logger.debug("Channel not found for {}", param);
             return;
         }
-        final String transformation = basicChannel.getTransfortmation();
+        final String transformation = basicChannel.getTransformation();
         if (transformation != null) {
             JsonElement transformed = Conversions.execute(transformation, val);
             logger.debug("Transformed with '{}': {} {} -> {} ", transformation, basicChannel.getFriendlyName(), val,
@@ -663,7 +663,7 @@ public class MiIoBasicHandler extends MiIoAbstractHandler {
                         if (ch != null) {
                             if (response.getResult().isJsonArray()) {
                                 JsonArray cmdResponse = response.getResult().getAsJsonArray();
-                                final String transformation = ch.getTransfortmation();
+                                final String transformation = ch.getTransformation();
                                 if (transformation == null || transformation.isBlank()) {
                                     JsonElement response0 = cmdResponse.get(0);
                                     updateChannel(ch, ch.getChannel(), response0.isJsonPrimitive() ? response0