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:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user