mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Remove unused variable in stats _sorted_statistics_to_dict (#111912)
This commit is contained in:
parent
d81ed37501
commit
72fe170dc8
@ -2056,7 +2056,7 @@ def _sorted_statistics_to_dict( # noqa: C901
|
|||||||
seen_statistic_ids: set[str] = set()
|
seen_statistic_ids: set[str] = set()
|
||||||
key_func = itemgetter(metadata_id_idx)
|
key_func = itemgetter(metadata_id_idx)
|
||||||
for meta_id, group in groupby(stats, key_func):
|
for meta_id, group in groupby(stats, key_func):
|
||||||
stats_list = stats_by_meta_id[meta_id] = list(group)
|
stats_by_meta_id[meta_id] = list(group)
|
||||||
seen_statistic_ids.add(metadata[meta_id]["statistic_id"])
|
seen_statistic_ids.add(metadata[meta_id]["statistic_id"])
|
||||||
|
|
||||||
# Set all statistic IDs to empty lists in result set to maintain the order
|
# Set all statistic IDs to empty lists in result set to maintain the order
|
||||||
|
Loading…
x
Reference in New Issue
Block a user