From 14d0001d325eace3febb5746001c71aa4d2ce1c1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 30 Apr 2023 14:03:02 -0500 Subject: [PATCH] Add a blog post for Statistics WebSocket API changes (#1763) --- blog/2023-04-30-statistics_impossible_values.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 blog/2023-04-30-statistics_impossible_values.md diff --git a/blog/2023-04-30-statistics_impossible_values.md b/blog/2023-04-30-statistics_impossible_values.md new file mode 100644 index 00000000..d07c78cf --- /dev/null +++ b/blog/2023-04-30-statistics_impossible_values.md @@ -0,0 +1,11 @@ +--- +author: J. Nick Koston +authorURL: https://github.com/bdraco +title: "Statistics WebSocket API changes" +--- + +This change affects WebSocket APIs: `recorder/statistic_during_period` and `recorder/statistics_during_period`. The Home Assistant project does not currently document these APIs, as they may change. + +For Home Assistant Core 2023.6 the statistics WebSocket API will no longer return columns that it knows will be empty. Callers should treat the lack of values the same as null values. + +To reduce database overhead, if the statistics backend knows in advance that all rows for a column will be empty values, the column will no longer be returned. \ No newline at end of file