Unit.pm: fix pct

git-svn-id: https://svn.fhem.de/fhem/trunk@12518 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2016-11-07 06:28:18 +00:00
parent 1949081c72
commit 6432e048db

View File

@@ -2616,7 +2616,7 @@ sub GetValueWithUnit ($$@) {
my $l = ( $lang ? lc($lang) : "en" );
my $return = GetDetails( $unit, $l );
my $txt;
return $value if ( !$return->{"unit"} );
return $value if ( !$return->{"unit"} && !$return->{"unit_symbol"} );
$return->{"value"} = $value;