Only report invalid numeric value for sensors once (#87010)

This commit is contained in:
Franck Nijhof 2023-01-31 12:44:18 +01:00 committed by GitHub
parent 35b82db8b0
commit 4dba9c09fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -599,6 +599,7 @@ class SensorEntity(Entity):
f"({type(value)})"
) from err
# This should raise in Home Assistant Core 2023.4
if not self._invalid_numeric_value_reported:
self._invalid_numeric_value_reported = True
report_issue = self._suggest_report_issue()
_LOGGER.warning(