mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[iaqualink] Fix isssue using manual pool IDs (#12659)
Fixes #12654 Signed-off-by: Dan Cunningham <dan@digitaldan.com>
This commit is contained in:
parent
5f172c1557
commit
c48ba25915
@ -296,7 +296,7 @@ public class IAqualinkHandler extends BaseThingHandler {
|
||||
}
|
||||
|
||||
if (confSerialId != null && !confSerialId.isBlank()) {
|
||||
serialNumber = confSerialId.replaceAll("[^a-zA-Z0-9]", "").toLowerCase();
|
||||
serialNumber = confSerialId.replaceAll("[^a-zA-Z0-9]", "").toUpperCase();
|
||||
if (!Arrays.stream(devices).anyMatch(device -> device.getSerialNumber().equals(serialNumber))) {
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,
|
||||
"No Device for given serialId found");
|
||||
@ -306,6 +306,8 @@ public class IAqualinkHandler extends BaseThingHandler {
|
||||
serialNumber = devices[0].getSerialNumber();
|
||||
}
|
||||
|
||||
logger.debug("Using serial number {}", serialNumber);
|
||||
|
||||
initPolling(COMMAND_REFRESH_SECONDS);
|
||||
} catch (IOException e) {
|
||||
logger.debug("Could not connect to service {}", e.getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user