2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

70_PylonLowVoltage.pm: contrib V0.1.12

git-svn-id: https://svn.fhem.de/fhem/trunk@28276 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2023-12-14 07:15:09 +00:00
parent 50f1f3a1ff
commit a201eae83f

View File

@ -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 = {