mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
fhem.pl: some sleep fix
git-svn-id: https://svn.fhem.de/fhem/trunk@19376 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b51ca053ea
commit
462e887467
@ -3199,7 +3199,7 @@ CommandSleep($$)
|
|||||||
my ($err, $hr,$min,$s, $fn) = GetTimeSpec($sec);
|
my ($err, $hr,$min,$s, $fn) = GetTimeSpec($sec);
|
||||||
if($err) { # not a valid timespec => treat as regex
|
if($err) { # not a valid timespec => treat as regex
|
||||||
if(@cmdList && $init_done) {
|
if(@cmdList && $init_done) {
|
||||||
CommandDelete($cl, $name) if($defs{$name});
|
CommandDelete($cl, $sleepers{$id}{name}) if($sleepers{$id});
|
||||||
$err = CommandDefine($cl,
|
$err = CommandDefine($cl,
|
||||||
"-temporary $name notify $sec {sleep_WakeUpFn('$id')}");
|
"-temporary $name notify $sec {sleep_WakeUpFn('$id')}");
|
||||||
$attr{$name}{ignore} = 1;
|
$attr{$name}{ignore} = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user