From dc86fc0bdf83f82645b90ba44a50c13dd7f2b0c2 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 23 Aug 2023 14:19:58 +0200 Subject: [PATCH] Add blog post about numerical sensors can't be NaN or inf (#1885) Co-authored-by: Franck Nijhof --- blog/2023-08-23-sensor-updates.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 blog/2023-08-23-sensor-updates.md diff --git a/blog/2023-08-23-sensor-updates.md b/blog/2023-08-23-sensor-updates.md new file mode 100644 index 00000000..1cdb7a95 --- /dev/null +++ b/blog/2023-08-23-sensor-updates.md @@ -0,0 +1,11 @@ +--- +author: Erik Montnémery +authorURL: https://github.com/emontnemery +title: "Numerical sensors are no longer allowed to set their state to NaN or inf" +--- + +Numerical sensors are no longer allowed to set their state to [Not a Number](https://en.wikipedia.org/wiki/NaN) or to positive or negative infinity. + +The change was introduce in [core PR#98110](https://github.com/home-assistant/core/pull/98110) + +For more details, refer to the [`sensor` documentation](/docs/core/entity/sensor).