From 39ec5c2fb2da00623ae4ce25033515364b6fbac0 Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Sat, 7 Jan 2017 11:30:58 +0000 Subject: [PATCH] Unit.pm: fix pct unit format git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12997 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/Unit.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/FHEM/Unit.pm b/FHEM/Unit.pm index 6e0bf808d..aca917c27 100644 --- a/FHEM/Unit.pm +++ b/FHEM/Unit.pm @@ -1423,11 +1423,13 @@ my $rtypes = { }, pct => { - ref_base => 25, - format => '%i', - symbol => chr(0x0025), - suffix => 'pct', - txt => { + ref_base => 25, + format => '%i', + symbol => chr(0x0025), + suffix => 'pct', + tmpl => '%value%' . chr(0x202F) . '%symbol%', + tmpl_long => '%value% %txt%', + txt => { de => 'Prozent', en => 'percent', },