From ef1deff4e96838da0a7116b50d4489ae526434ea Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 21 Jun 2021 21:16:34 +0200 Subject: [PATCH] [miio] fix typo (#10894) Signed-off-by: Marcel Verpaalen --- .../binding/miio/internal/basic/MiIoBasicChannel.java | 10 +++++----- .../miio/internal/handler/MiIoBasicHandler.java | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoBasicChannel.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoBasicChannel.java index 9571e154fe3..a012e4da288 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoBasicChannel.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoBasicChannel.java @@ -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() { diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java index 101e7a7895f..72e5bdc588b 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java @@ -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