2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

SMUtils.pm: update to version 1.4.0

git-svn-id: https://svn.fhem.de/fhem/trunk@22688 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-08-29 12:58:01 +00:00
parent d9e5d9ea14
commit e09cf0a4bf

View File

@ -40,7 +40,7 @@ use FHEM::SynoModules::ErrCodes qw(:all); # Erro
use GPUtils qw( GP_Import GP_Export );
use Carp qw(croak carp);
use version; our $VERSION = version->declare('1.3.0');
use version; our $VERSION = version->declare('1.4.0');
use Exporter ('import');
our @EXPORT_OK = qw(
@ -178,8 +178,9 @@ sub setVersionInfo {
$hash->{HELPER}{PACKAGE} = __PACKAGE__;
$hash->{HELPER}{VERSION} = $v;
$hash->{HELPER}{VERSION_API} = FHEM::SynoModules::API->VERSION() // "unused";
$hash->{HELPER}{VERSION_SMUtils} = FHEM::SynoModules::SMUtils->VERSION() // "unused";
$hash->{HELPER}{VERSION_API} = FHEM::SynoModules::API->VERSION() // "unused";
$hash->{HELPER}{VERSION_SMUtils} = FHEM::SynoModules::SMUtils->VERSION() // "unused";
$hash->{HELPER}{VERSION_ErrCodes} = FHEM::SynoModules::ErrCodes->VERSION() // "unused";
if($modules{$type}{META}{x_prereqs_src} && !$hash->{HELPER}{MODMETAABSENT}) { # META-Daten sind vorhanden
$modules{$type}{META}{version} = "v".$v; # Version aus META.json überschreiben, Anzeige mit {Dumper $modules{<TYPE>}{META}}