SMUtils.pm: update to version 1.11.1

git-svn-id: https://svn.fhem.de/fhem/trunk@22878 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-09-28 22:04:57 +00:00
parent ff41e4203b
commit a3da9e1978

View File

@ -375,13 +375,15 @@ sub completeAPI {
my $apiref = shift // carp $carpnoapir && return;
for my $key (keys %{$apiref}) {
next if($key =~ /PARSET$/x);
$apiref->{$key}{PATH} = $jdata->{data}{$apiref->{$key}{NAME}}{path} // "undefined";
$apiref->{$key}{VER} = $jdata->{data}{$apiref->{$key}{NAME}}{maxVersion} // 0;
next if($key =~ /^PARSET$/x);
$apiref->{$key}{PATH} = $jdata->{data}{$apiref->{$key}{NAME}}{path} // return;
$apiref->{$key}{VER} = $jdata->{data}{$apiref->{$key}{NAME}}{maxVersion} // return;
$apiref->{$key}{MOD} = "no"; # MOD = Version nicht modifiziert
}
return;
$apiref->{PARSET} = 1; # alle API Hash values erfolgreich gesetzt
return 1;
}
###############################################################################