MAX: remove unnecessary check

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2669 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre
2013-02-08 19:44:34 +00:00
parent c51855352f
commit f2261b90ec

View File

@@ -199,10 +199,8 @@ MAX_Set($@)
#TODO: auto mode with temperature is also possible
} elsif($args[0] eq "eco") {
$temperature = MAX_ReadingsVal($hash,"ecoTemperature");
return "No ecoTemperature defined" if(!$temperature);
} elsif($args[0] eq "comfort") {
$temperature = MAX_ReadingsVal($hash,"comfortTemperature");
return "No comfortTemperature defined" if(!$temperature);
}else{
$temperature = MAX_ParseTemperature($args[0]);
}