From ae412896f8a3d7b314988bc1fbe455a565870015 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Fri, 23 Aug 2024 21:06:05 +0000 Subject: [PATCH] 70_PylonLowVoltage: internal code changes git-svn-id: https://svn.fhem.de/fhem/trunk@29096 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/70_PylonLowVoltage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/70_PylonLowVoltage.pm b/fhem/FHEM/70_PylonLowVoltage.pm index 2affeb942..6a56d5cdc 100644 --- a/fhem/FHEM/70_PylonLowVoltage.pm +++ b/fhem/FHEM/70_PylonLowVoltage.pm @@ -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";