Add a blog post for Statistics WebSocket API changes (#1763)

This commit is contained in:
J. Nick Koston 2023-04-30 14:03:02 -05:00 committed by GitHub
parent bbd8f67c49
commit 14d0001d32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.