98_WeekdayTimer: minor improvments

git-svn-id: https://svn.fhem.de/fhem/trunk@12895 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
orti-otto
2016-12-27 23:38:54 +00:00
parent af94ca15f6
commit 4411b75cd0

View File

@@ -2,7 +2,7 @@
##############################################################################
#
# 98_WeekdayTimer.pm
# written by Dietmar Ortmann(Orti)
# written by Dietmar Ortmann
# modified by Tobias Faust
#
# This file is part of fhem.
@@ -791,8 +791,10 @@ sub WeekdayTimer_isHeizung($) {
my $allSets = getAllSets($dName);
foreach my $ts (@tempSet) {
Log3 $hash, 4, "[$name] device type heating recognized, setModifier:$ts";
return $ts if ($allSets =~ m/$ts/);
if ($allSets =~ m/$ts/) {
Log3 $hash, 4, "[$name] device type heating recognized, setModifier:$ts";
return $ts
}
}
}
################################################################################