2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 06:36:04 +00:00

do no touch STATE if neither the state reading nor the stateFormat attribute exist

git-svn-id: https://svn.fhem.de/fhem/trunk@2436 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2013-01-04 19:38:41 +00:00
parent 9aa002cf48
commit c83b58fc86

View File

@ -2964,7 +2964,7 @@ readingsEndUpdate($$)
$st =~ s/\b([A-Za-z_-]+)\b/($r->{$1} ? $r->{$1}{VAL} : $1)/ge;
}
$hash->{STATE} = ReplaceEventMap($name, $st, 1);
$hash->{STATE} = ReplaceEventMap($name, $st, 1) if(defined($st));
# propagate changes