Remove automatic splitting of net meters from statistics (#56772)

This commit is contained in:
Erik Montnemery 2021-09-29 17:20:17 +02:00 committed by GitHub
parent d13c3e3917
commit 40ecf22bac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 2 additions and 164 deletions

View file

@ -249,7 +249,6 @@ class StatisticData(StatisticDataBase, total=False):
last_reset: datetime | None
state: float
sum: float
sum_increase: float
class StatisticsBase:
@ -274,7 +273,6 @@ class StatisticsBase:
last_reset = Column(DATETIME_TYPE)
state = Column(DOUBLE_TYPE)
sum = Column(DOUBLE_TYPE)
sum_increase = Column(DOUBLE_TYPE)
@classmethod
def from_stats(cls, metadata_id: str, stats: StatisticData):