2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

98_weekprofile: load modules dynamically with require

git-svn-id: https://svn.fhem.de/fhem/trunk@24994 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Risiko 2021-09-19 16:34:12 +00:00
parent 96218aeeef
commit 950d07753a

View File

@ -12,7 +12,6 @@ use strict;
use warnings;
use JSON; #libjson-perl
use Data::Dumper;
use Time::HiRes qw(gettimeofday);
use Storable qw(dclone);
@ -774,6 +773,8 @@ sub sort_by_name
##############################################
sub dumpData($$$)
{
require Data::Dumper;
my ($hash,$prefix,$data) = @_;
my $me = $hash->{NAME};
@ -1510,6 +1511,7 @@ sub weekprofile_createTempList($) {
}
if (scalar(@values)>0) {
require List::Util;
$defMin = List::Util::min(@values);
$defMax = List::Util::max(@values);
}