From a0d0aec67724489ca080dafacd472425ae07c047 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Fri, 15 Mar 2024 19:46:24 +0100 Subject: [PATCH] Fix: Correct detection of Hoymiles serial if it contains hex characters --- webapp/src/components/InputSerial.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/components/InputSerial.vue b/webapp/src/components/InputSerial.vue index 26aa4d617..9f5ee343b 100644 --- a/webapp/src/components/InputSerial.vue +++ b/webapp/src/components/InputSerial.vue @@ -52,7 +52,7 @@ export default defineComponent({ this.formatShow = "info"; // Contains only numbers - if (/^[\d]{12}$/.test(serial)) { + if (/^1{1}[\dA-F]{11}$/.test(serial)) { this.model = serial; this.formatHint = this.$t('inputserial.format_hoymiles'); }