From e86f78503182c86dbf56d3c8692fe16ec105d73d Mon Sep 17 00:00:00 2001 From: Lennard Beers Date: Fri, 10 Mar 2023 15:34:19 +0100 Subject: [PATCH] refactor: remove unused variable --- estimenergy/models/collector_data.py | 1 - 1 file changed, 1 deletion(-) diff --git a/estimenergy/models/collector_data.py b/estimenergy/models/collector_data.py index bab9aa5..c1ff758 100644 --- a/estimenergy/models/collector_data.py +++ b/estimenergy/models/collector_data.py @@ -80,7 +80,6 @@ async def get_energy(self, metric: Metric, date: datetime.date): date = date.replace(year=year, month=month, day=1) accuracy = await self.get_accuracy(Metric(MetricType.ACCURACY, MetricPeriod.MONTH, False, False), date) - energy_datas = await self.get_energy_datas(MetricPeriod.MONTH, date) if not metric.is_raw and accuracy < self.min_accuracy: missing_months += 1