mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
ff41e4203b
commit
a3da9e1978
@ -375,13 +375,15 @@ sub completeAPI {
|
|||||||
my $apiref = shift // carp $carpnoapir && return;
|
my $apiref = shift // carp $carpnoapir && return;
|
||||||
|
|
||||||
for my $key (keys %{$apiref}) {
|
for my $key (keys %{$apiref}) {
|
||||||
next if($key =~ /PARSET$/x);
|
next if($key =~ /^PARSET$/x);
|
||||||
$apiref->{$key}{PATH} = $jdata->{data}{$apiref->{$key}{NAME}}{path} // "undefined";
|
$apiref->{$key}{PATH} = $jdata->{data}{$apiref->{$key}{NAME}}{path} // return;
|
||||||
$apiref->{$key}{VER} = $jdata->{data}{$apiref->{$key}{NAME}}{maxVersion} // 0;
|
$apiref->{$key}{VER} = $jdata->{data}{$apiref->{$key}{NAME}}{maxVersion} // return;
|
||||||
$apiref->{$key}{MOD} = "no"; # MOD = Version nicht modifiziert
|
$apiref->{$key}{MOD} = "no"; # MOD = Version nicht modifiziert
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
$apiref->{PARSET} = 1; # alle API Hash values erfolgreich gesetzt
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user