ensure that the myInternaltimer functions are available

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5556 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
dietmar63
2014-04-18 16:48:41 +00:00
parent 7637d6c46e
commit 1b0ee30eae

View File

@@ -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";