Do not publish NaN floats, send None instead

This commit is contained in:
2025-02-08 13:17:01 +01:00
parent 2103a411ad
commit e5c9a97683
+3
View File
@@ -7,3 +7,6 @@ mqtt:
# e.g. Reset button, and component+object_id doesn't cut it
# to provide uniqueness.
discovery_unique_id_generator: mac
# No point in publishing NaN as it will not be accepted by
# HA and only generate error messages.
publish_nan_as_none: true