Skip to content

Commit 2330fea

Browse files
authored
fix: iteration over group not working (#112)
1 parent d77a864 commit 2330fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/iec/coordinator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ async def _insert_statistics(self, contract_id: int, is_smart_meter: bool) -> No
417417
if key <= last_stat_req_hour:
418418
_LOGGER.debug(f"LongTerm Statistics - Skipping {key} data since it's already reported")
419419
continue
420-
readings_by_hour[key] = sum(reading.value for reading in group)
420+
readings_by_hour[key] = sum(reading.value for reading in group_list)
421421

422422
consumption_metadata = StatisticMetaData(
423423
has_mean=False,

0 commit comments

Comments
 (0)