2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

98_WeekdayTimer.pm: fix warning for non-nummeric delayed condition

git-svn-id: https://svn.fhem.de/fhem/trunk@23066 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2020-11-01 07:02:49 +00:00
parent 5704e921c6
commit 0fb3d4dda6

View File

@ -952,7 +952,7 @@ sub WeekdayTimer_Update {
# Fenserkontakte abfragen - wenn einer im Status closed, dann Schaltung um 60 Sekunden verzögern
my $winopen = WeekdayTimer_FensterOffen($hash, $newParam, $idx);
if ($winopen) {
readingsSingleUpdate ($hash, "state", ($winopen == 1 or lc($winopen) eq "true") ? "open window" : $winopen, 1);
readingsSingleUpdate ($hash, "state", ($winopen eq "1" or lc($winopen) eq "true") ? "open window" : $winopen, 1);
return;
}