2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 07:19:24 +00:00

FHEMWEB: Preset the set dropdown additionally with a reading of the same name

as wished by Loredo (http://forum.fhem.de/index.php/topic,15090.0.html)



git-svn-id: https://svn.fhem.de/fhem/trunk@4092 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-10-21 20:58:57 +00:00
parent 9682007943
commit 1eed65b6eb

View File

@ -2218,7 +2218,7 @@ FW_dropdownFn()
$txt =~ s/ .*//; # Cut off Celsius
$txt = sprintf("%2.1f", int(2*$txt)/2) if($txt =~ m/[0-9.-]/);
} else {
$txt = Value($d);
$txt = ReadingsVal($d, $cmd, Value($d));
$txt =~ s/$cmd //;
}