From 950d07753a999df6e66fd78351c338c7c5cde8d5 Mon Sep 17 00:00:00 2001 From: Risiko <> Date: Sun, 19 Sep 2021 16:34:12 +0000 Subject: [PATCH] 98_weekprofile: load modules dynamically with require git-svn-id: https://svn.fhem.de/fhem/trunk@24994 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_weekprofile.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/98_weekprofile.pm b/fhem/FHEM/98_weekprofile.pm index 6f872f88d..d26cebe50 100644 --- a/fhem/FHEM/98_weekprofile.pm +++ b/fhem/FHEM/98_weekprofile.pm @@ -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); }