mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56: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:
parent
f75f1d6321
commit
bbcec17e1d
@ -2616,7 +2616,7 @@ sub GetValueWithUnit ($$@) {
|
|||||||
my $l = ( $lang ? lc($lang) : "en" );
|
my $l = ( $lang ? lc($lang) : "en" );
|
||||||
my $return = GetDetails( $unit, $l );
|
my $return = GetDetails( $unit, $l );
|
||||||
my $txt;
|
my $txt;
|
||||||
return $value if ( !$return->{"unit"} );
|
return $value if ( !$return->{"unit"} && !$return->{"unit_symbol"} );
|
||||||
|
|
||||||
$return->{"value"} = $value;
|
$return->{"value"} = $value;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user