2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-15 04:20:56 +00:00

70_PylonLowVoltage: internal code changes

git-svn-id: https://svn.fhem.de/fhem/trunk@29098 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2024-08-23 21:34:08 +00:00
parent 1cfb4a3ac4
commit 9f203c9c88

View File

@ -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} ? 'no group' : $h->{group};
$hash->{GROUP} = $h->{group} // 0;
if ($hash->{BATADDRESS} !~ /^([1-9]{1}|1[0-6])$/xs) {
return "Define: bataddress must be a value between 1 and 16";