From 0cf8e43eb66dbf6a1cede2c1bf22b74daa26a77d Mon Sep 17 00:00:00 2001 From: Thomas Lauterbach Date: Thu, 9 Sep 2021 17:16:38 +0200 Subject: [PATCH] Revert "added data validation" This reverts commit 8d7bd95629426640d9f63d53c05335f3dcbd9b5b. Signed-off-by: Thomas Lauterbach --- .../enocean/internal/eep/D2_06/D2_06_50.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/eep/D2_06/D2_06_50.java b/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/eep/D2_06/D2_06_50.java index 20092bfd4b678..8e962ae64381e 100644 --- a/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/eep/D2_06/D2_06_50.java +++ b/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/eep/D2_06/D2_06_50.java @@ -157,21 +157,4 @@ public State convertToStateImpl(String channelId, String channelTypeId, Function return UnDefType.UNDEF; } - - @Override - protected boolean validateData(byte[] bytes) { - // Window status - if (bytes[0] == 1) { - return bytes.length == 8; - } - // Alarm - if (bytes[0] == 2) { - return bytes.length == 2; - } - // Calibration (not supported but valid) - if (bytes[0] == 11) { - return bytes.length == 2; - } - return false; - } }