2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 10:46:03 +00:00

Unit.pm: fix pct

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

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;