From 7a17aa53c753c1b0f482d3b4ac96b13e15a38b3d Mon Sep 17 00:00:00 2001 From: dietmar63 <> Date: Fri, 18 Apr 2014 16:48:41 +0000 Subject: [PATCH] ensure that the myInternaltimer functions are available git-svn-id: https://svn.fhem.de/fhem/trunk@5556 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_RandomTimer.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fhem/FHEM/98_RandomTimer.pm b/fhem/FHEM/98_RandomTimer.pm index 08d52a42c..6104a938f 100644 --- a/fhem/FHEM/98_RandomTimer.pm +++ b/fhem/FHEM/98_RandomTimer.pm @@ -38,6 +38,11 @@ sub RandomTimer_Initialize($) { my ($hash) = @_; + if(!$modules{Twilight}{LOADED} && -f "$attr{global}{modpath}/FHEM/59_Twilight.pm") { + my $ret = CommandReload(undef, "59_Twilight"); + Log3 undef, 1, $ret if($ret); + } + $hash->{DefFn} = "RandomTimer_Define"; $hash->{UndefFn} = "RandomTimer_Undef"; $hash->{AttrFn} = "RandomTimer_Attr";