mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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:
parent
50f1f3a1ff
commit
a201eae83f
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user