From 2e4b4dc1883c67e8c93d2b8a55cfc723c2952f6d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 17 Jul 2020 20:18:35 +0200 Subject: [PATCH] prometheus: Reduce loglevel of failed float conversion to debug (#37936) It creates alot of useless noise currently. Fixes #30186 --- homeassistant/components/prometheus/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/prometheus/__init__.py b/homeassistant/components/prometheus/__init__.py index 654e6245a57..1a70e4cf78e 100644 --- a/homeassistant/components/prometheus/__init__.py +++ b/homeassistant/components/prometheus/__init__.py @@ -225,7 +225,7 @@ class PrometheusMetrics: try: value = state_helper.state_as_number(state) except ValueError: - _LOGGER.warning("Could not convert %s to float", state) + _LOGGER.debug("Could not convert %s to float", state) value = 0 return value