RESIDENTStk wakeuptimer: fix loop when wakeuptime=OFF and no attribute wakeupDefaultTime present

git-svn-id: https://svn.fhem.de/fhem/trunk@8422 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2015-04-12 11:52:36 +00:00
parent 79ab1da193
commit 0e4e6fd0af

View File

@@ -1093,9 +1093,7 @@ sub RESIDENTStk_wakeupRun($;$) {
"RESIDENTStk $NAME: Resetting based on wakeupDefaultTime";
fhem
"set $NAME:FILTER=nextRun!=$wakeupDefaultTime nextRun $wakeupDefaultTime";
}
if ( !$running ) {
} elsif ( !$running ) {
fhem "setreading $NAME:FILTER=state!=$nextRun state $nextRun";
}