mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +00:00
Only report invalid numeric value for sensors once (#87010)
This commit is contained in:
parent
35b82db8b0
commit
4dba9c09fc
@ -599,6 +599,7 @@ class SensorEntity(Entity):
|
|||||||
f"({type(value)})"
|
f"({type(value)})"
|
||||||
) from err
|
) from err
|
||||||
# This should raise in Home Assistant Core 2023.4
|
# This should raise in Home Assistant Core 2023.4
|
||||||
|
if not self._invalid_numeric_value_reported:
|
||||||
self._invalid_numeric_value_reported = True
|
self._invalid_numeric_value_reported = True
|
||||||
report_issue = self._suggest_report_issue()
|
report_issue = self._suggest_report_issue()
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user