[vesync] SCA error catches (#17835)

Signed-off-by: David Goodyear <david.goodyear@gmail.com>
This commit is contained in:
David Goodyear 2024-12-03 21:21:58 +00:00 committed by GitHub
parent 053ebb8bf0
commit 45b98ec991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 static org.openhab.binding.vesync.internal.dto.requests.VeSyncProtocolConstants.V2_BYPASS_ENDPOINT;
import java.time.Duration; 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.ScheduledFuture;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@ -555,7 +561,6 @@ public abstract class VeSyncBaseDeviceHandler extends BaseThingHandler {
public static VeSyncDeviceMetadata getDeviceFamilyMetadata(final @Nullable String deviceType, public static VeSyncDeviceMetadata getDeviceFamilyMetadata(final @Nullable String deviceType,
final String deviceProtocolPrefix, final List<VeSyncDeviceMetadata> metadata) { final String deviceProtocolPrefix, final List<VeSyncDeviceMetadata> metadata) {
if (deviceType == null) { if (deviceType == null) {
return UNKNOWN; return UNKNOWN;
} }