73_ElectricityCalculator: bugfix: Reset for calendar year fixed
git-svn-id: https://svn.fhem.de/fhem/trunk@12967 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -732,7 +732,7 @@ sub ElectricityCalculator_Notify($$)
|
||||
my $ElectricityCalcMeterYearMonth=0;
|
||||
if (($ElectricityCountReadingTimestampCurrentMon - $attr{$ElectricityCalcName}{MonthOfAnnualReading} + 1) < 1)
|
||||
{
|
||||
$ElectricityCalcMeterYearMonth = 12 + $ElectricityCountReadingTimestampCurrentMon - $attr{$ElectricityCalcName}{MonthOfAnnualReading};
|
||||
$ElectricityCalcMeterYearMonth = 13 + $ElectricityCountReadingTimestampCurrentMon - $attr{$ElectricityCalcName}{MonthOfAnnualReading};
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user