From e8ff27fa44461a108f3942f5e9547d72bb280d65 Mon Sep 17 00:00:00 2001 From: Thomas Lauterbach Date: Thu, 8 Jul 2021 15:14:20 +0200 Subject: [PATCH] Revert "added data validation" This reverts commit 945101056b7d0a79b6d53985cfcef8e06bf0a8aa. 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; - } }