mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_WeekdayTimer.pm: fix adding .0 to non-heating devices, #114377
git-svn-id: https://svn.fhem.de/fhem/trunk@22820 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6346cea6be
commit
29f72eda63
@ -1187,7 +1187,7 @@ sub WeekdayTimer_Switch_Device {
|
||||
|
||||
my $activeTimer = 1;
|
||||
|
||||
my $isHeating = defined $setModifier ? 1 : 0;
|
||||
my $isHeating = $setModifier ? 1 : 0;
|
||||
my $aktParam = ReadingsVal($hash->{DEVICE}, $setModifier, "");
|
||||
$aktParam = sprintf("%.1f", $aktParam) if ( $isHeating && $aktParam =~ m{\A[0-9]{1,3}\z}ixms );
|
||||
$newParam = sprintf("%.1f", $newParam) if ( $isHeating && $newParam =~ m{\A[0-9]{1,3}\z}ixms );
|
||||
|
Loading…
x
Reference in New Issue
Block a user