From 9a05cc768683ff4a8a2580a225d7bf8d59d793e4 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Thu, 14 Dec 2023 07:15:09 +0000 Subject: [PATCH] 70_PylonLowVoltage.pm: contrib V0.1.12 git-svn-id: https://svn.fhem.de/fhem/trunk@28276 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/70_PylonLowVoltage.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/contrib/DS_Starter/70_PylonLowVoltage.pm b/fhem/contrib/DS_Starter/70_PylonLowVoltage.pm index 551ad7bbe..d41419302 100644 --- a/fhem/contrib/DS_Starter/70_PylonLowVoltage.pm +++ b/fhem/contrib/DS_Starter/70_PylonLowVoltage.pm @@ -437,8 +437,8 @@ sub Define { ($hash->{HOST}, $hash->{PORT}) = split ":", $args[2]; $hash->{BATADDRESS} = $args[3] // 1; - if ($hash->{BATADDRESS} !~ /[12345678]/xs) { - return "Define: bataddress must be a value between 1 and 8"; + if ($hash->{BATADDRESS} !~ /[1-9]|1[0-2]$/xs) { + return "Define: bataddress must be a value between 1 and 12"; } my $params = {