From 45b98ec991ccdcb271402cecf6cd163f395efc89 Mon Sep 17 00:00:00 2001 From: David Goodyear Date: Tue, 3 Dec 2024 21:21:58 +0000 Subject: [PATCH] [vesync] SCA error catches (#17835) Signed-off-by: David Goodyear --- .../internal/handlers/VeSyncBaseDeviceHandler.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.vesync/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncBaseDeviceHandler.java b/bundles/org.openhab.binding.vesync/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncBaseDeviceHandler.java index a83dcbc0114..a20238d2a2a 100644 --- a/bundles/org.openhab.binding.vesync/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncBaseDeviceHandler.java +++ b/bundles/org.openhab.binding.vesync/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncBaseDeviceHandler.java @@ -16,7 +16,13 @@ import static org.openhab.binding.vesync.internal.VeSyncConstants.*; import static org.openhab.binding.vesync.internal.dto.requests.VeSyncProtocolConstants.V2_BYPASS_ENDPOINT; import java.time.Duration; -import java.util.*; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; @@ -555,7 +561,6 @@ public abstract class VeSyncBaseDeviceHandler extends BaseThingHandler { public static VeSyncDeviceMetadata getDeviceFamilyMetadata(final @Nullable String deviceType, final String deviceProtocolPrefix, final List metadata) { - if (deviceType == null) { return UNKNOWN; }