2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-27 04:35:34 +00:00

98_PID20.pm: remove smartmatch issues

git-svn-id: https://svn.fhem.de/fhem/trunk@28752 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2024-04-05 10:20:19 +00:00
parent e1584846b2
commit 0ea0563ac8

View File

@ -346,10 +346,7 @@ sub PID20_Get($@)
my $usage = "Unknown argument $a[1], choose one of params:noArg";
return $usage if ( @a < 2 );
my $cmd = lc( $a[1] );
given ($cmd)
{
when ('params')
{
if ($cmd eq 'params') {
my $ret = "Defined parameters for PID20 $name:\n\n";
$ret .= 'Actor name : ' . $hash->{helper}{actor} . "\n";
$ret .= 'Actor cmd : ' . $hash->{helper}{actorCommand} . "\n\n";
@ -362,8 +359,8 @@ sub PID20_Get($@)
$ret .= 'Actor lower limit: ' . $hash->{helper}{actorLimitLower} . "\n";
$ret .= 'Actor upper limit: ' . $hash->{helper}{actorLimitUpper} . "\n";
return $ret;
}
default { return $usage; }
} else {
return $usage; }
}
}
########################################