[nuki] Fixed nukiId migration for devices with shorter nukiId (#13088) (#13470)

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>
This commit is contained in:
Jan Vybíral
2022-10-01 13:45:35 +02:00
committed by GitHub
parent cedf6d9035
commit a646fe34e0
2 changed files with 11 additions and 1 deletions

View File

@@ -63,7 +63,8 @@ public abstract class AbstractNukiDeviceHandler<T extends NukiDeviceConfiguratio
protected final Logger logger = LoggerFactory.getLogger(getClass());
private static final int JOB_INTERVAL = 60;
private static final Pattern NUKI_ID_HEX_PATTERN = Pattern.compile("[A-F\\d]{8}", Pattern.CASE_INSENSITIVE);
private static final Pattern NUKI_ID_HEX_PATTERN = Pattern.compile("[A-F\\d]*[A-F]+[A-F\\d]*",
Pattern.CASE_INSENSITIVE);
@Nullable
protected ScheduledFuture<?> reInitJob;