mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
ensure that the myInternaltimer functions are available
git-svn-id: https://svn.fhem.de/fhem/trunk@5556 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1dea0d333c
commit
7a17aa53c7
@ -38,6 +38,11 @@ sub RandomTimer_Initialize($)
|
|||||||
{
|
{
|
||||||
my ($hash) = @_;
|
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->{DefFn} = "RandomTimer_Define";
|
||||||
$hash->{UndefFn} = "RandomTimer_Undef";
|
$hash->{UndefFn} = "RandomTimer_Undef";
|
||||||
$hash->{AttrFn} = "RandomTimer_Attr";
|
$hash->{AttrFn} = "RandomTimer_Attr";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user