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
@ -370,18 +370,20 @@ return $bool;
|
||||
# $jdata: Referenz zum $data-Hash der JSON-Antwort
|
||||
# $apiref: Referenz zum instanziierten API-Hash
|
||||
###############################################################################
|
||||
sub completeAPI {
|
||||
sub completeAPI {
|
||||
my $jdata = shift // carp "got no data Hash reference" && return;
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
$apiref->{PARSET} = 1; # alle API Hash values erfolgreich gesetzt
|
||||
|
||||
return;
|
||||
return 1;
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user