Unit.pm: fix pct
git-svn-id: https://svn.fhem.de/fhem/trunk@12518 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user