mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
70_PylonLowVoltage: internal code changes
git-svn-id: https://svn.fhem.de/fhem/trunk@29096 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d35ce0c196
commit
ae412896f8
@ -491,7 +491,7 @@ sub Define {
|
||||
my ($a,$h) = parseParams (join ' ', @args);
|
||||
($hash->{HOST}, $hash->{PORT}) = split ":", $$a[2];
|
||||
$hash->{BATADDRESS} = $$a[3] // 1;
|
||||
$hash->{GROUP} = $h->{group} // 0;
|
||||
$hash->{GROUP} = !$h->{group} ? 'no group' : $h->{group};
|
||||
|
||||
if ($hash->{BATADDRESS} !~ /^([1-9]{1}|1[0-6])$/xs) {
|
||||
return "Define: bataddress must be a value between 1 and 16";
|
||||
|
Loading…
Reference in New Issue
Block a user