From cb27d913972a0138852902bfe8980fcbe18fcf77 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 30 Apr 2023 13:44:45 -0500 Subject: [PATCH] Add a blog post for Statistics WebSocket API changes related core PR https://github.com/home-assistant/core/pull/92095 --- 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 00000000000..d07c78cf293 --- /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