Skip to content

Commit 45b98ec

Browse files
authored
[vesync] SCA error catches (openhab#17835)
Signed-off-by: David Goodyear <[email protected]>
1 parent 053ebb8 commit 45b98ec

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bundles/org.openhab.binding.vesync/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncBaseDeviceHandler.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@
1616
import static org.openhab.binding.vesync.internal.dto.requests.VeSyncProtocolConstants.V2_BYPASS_ENDPOINT;
1717

1818
import java.time.Duration;
19-
import java.util.*;
19+
import java.util.ArrayList;
20+
import java.util.Collections;
21+
import java.util.HashMap;
22+
import java.util.List;
23+
import java.util.Map;
24+
import java.util.Objects;
25+
import java.util.Optional;
2026
import java.util.concurrent.ScheduledFuture;
2127
import java.util.concurrent.TimeUnit;
2228

@@ -555,7 +561,6 @@ protected boolean isDeviceSupported() {
555561

556562
public static VeSyncDeviceMetadata getDeviceFamilyMetadata(final @Nullable String deviceType,
557563
final String deviceProtocolPrefix, final List<VeSyncDeviceMetadata> metadata) {
558-
559564
if (deviceType == null) {
560565
return UNKNOWN;
561566
}

0 commit comments

Comments
 (0)