fixed order of evaluation of valueStyle and valueFormat in notifyFn

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4406 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2013-12-17 09:36:35 +00:00
parent a5702c4197
commit 63d7adb97a

View File

@ -541,6 +541,8 @@ readingsGroup_Notify($$)
next if( defined($regex) && $reading !~ m/^$regex$/);
my $value_style = lookup2($value_style,$dev->{NAME},$reading,$value);
my $value = $value;
if( $value_format ) {
my $value_format = lookup2($value_format,$dev->{NAME},$reading,$value);
@ -574,7 +576,6 @@ readingsGroup_Notify($$)
next if( $devStateIcon );
}
my $value_style = lookup2($value_style,$dev->{NAME},$reading,$value);
$value = "<div $value_style>$value</div>" if( $value_style );
CommandTrigger( "", "$name $dev->{NAME}.$reading: $value" );