59_LuftdatenInfo: line 248 MODE was CONNECTION see 108864

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21434 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
igami 2020-03-16 04:17:45 +00:00
parent c16c03b732
commit a474dabe86

View File

@ -245,7 +245,7 @@ sub LuftdatenInfo_Attr(@) {
}
}
elsif($attribute eq "interval"){
my $minInterval = $hash->{CONNECTION} eq "local" ? 30 : 300;
my $minInterval = $hash->{MODE} eq "local" ? 30 : 300;
my $interval = $cmd eq "set" ? $value : $minInterval;
$interval = $minInterval unless(looks_like_number($interval));
$interval = $minInterval if($interval < $minInterval);