This commit is contained in:
Robert Resch 2025-02-13 20:50:48 +01:00
parent 04ee2f4e63
commit a7440531f5
No known key found for this signature in database
GPG Key ID: 9D9D9DCB43120143
3 changed files with 11 additions and 2 deletions

View File

@ -108,6 +108,7 @@ QUERY_STATISTICS = (
Statistics.last_reset_ts,
Statistics.state,
Statistics.sum,
Statistics.circular_mean,
)
QUERY_STATISTICS_SHORT_TERM = (
@ -119,7 +120,7 @@ QUERY_STATISTICS_SHORT_TERM = (
StatisticsShortTerm.last_reset_ts,
StatisticsShortTerm.state,
StatisticsShortTerm.sum,
Statistics.circular_mean,
StatisticsShortTerm.circular_mean,
)

View File

@ -165,7 +165,14 @@ def _ws_get_statistics_during_period(
units: dict[str, str],
types: set[
Literal[
"change", "last_reset", "max", "mean", "min", "state", "sum", "circular_mean"
"change",
"last_reset",
"max",
"mean",
"min",
"state",
"sum",
"circular_mean",
]
],
) -> bytes:

View File

@ -87,6 +87,7 @@ async def test_validate_db_schema_fix_float_issue(
"created_ts DOUBLE PRECISION",
"start_ts DOUBLE PRECISION",
"mean DOUBLE PRECISION",
"circular_mean DOUBLE PRECISION",
"min DOUBLE PRECISION",
"max DOUBLE PRECISION",
"last_reset_ts DOUBLE PRECISION",