We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ff5de commit ac2fb53Copy full SHA for ac2fb53
homeassistant/components/recorder/table_managers/statistics_meta.py
@@ -26,7 +26,7 @@
26
27
_LOGGER = logging.getLogger(__name__)
28
29
-QUERY_STATISTIC_META = (
+QUERY_STATISTICS_META = (
30
StatisticsMeta.id,
31
StatisticsMeta.statistic_id,
32
StatisticsMeta.source,
@@ -55,7 +55,7 @@ def _generate_get_metadata_stmt(
55
56
Depending on the schema version, either mean_type (added in version 49) or has_mean column is used.
57
"""
58
- columns: list[InstrumentedAttribute[Any]] = list(QUERY_STATISTIC_META)
+ columns: list[InstrumentedAttribute[Any]] = list(QUERY_STATISTICS_META)
59
if schema_version >= CIRCULAR_MEAN_SCHEMA_VERSION:
60
columns.append(StatisticsMeta.mean_type)
61
else:
0 commit comments