Fix: Correct detection of Hoymiles serial if it contains hex characters

This commit is contained in:
Thomas Basler 2024-03-15 19:46:24 +01:00
parent 0b7258d50e
commit a0d0aec677

View File

@ -52,7 +52,7 @@ export default defineComponent({
this.formatShow = "info"; this.formatShow = "info";
// Contains only numbers // Contains only numbers
if (/^[\d]{12}$/.test(serial)) { if (/^1{1}[\dA-F]{11}$/.test(serial)) {
this.model = serial; this.model = serial;
this.formatHint = this.$t('inputserial.format_hoymiles'); this.formatHint = this.$t('inputserial.format_hoymiles');
} }