prometheus: Reduce loglevel of failed float conversion to debug (#37936)
It creates alot of useless noise currently. Fixes #30186
This commit is contained in:
parent
6ad794e1f8
commit
2e4b4dc188
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ class PrometheusMetrics:
|
||||||
try:
|
try:
|
||||||
value = state_helper.state_as_number(state)
|
value = state_helper.state_as_number(state)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
_LOGGER.warning("Could not convert %s to float", state)
|
_LOGGER.debug("Could not convert %s to float", state)
|
||||||
value = 0
|
value = 0
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue