From 12d40f81afcc9e309f56f7c0da6becf2c41d7c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20D=C3=B6rfler?= <30753608+0Styless@users.noreply.github.com> Date: Tue, 14 Jan 2025 11:26:26 +0100 Subject: [PATCH] fix(common.py) - Change loglevel for missing device configuration from WARNING to DEBUG. (#1816) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Loglevel warning produces a huge amount of log messages (around 500000 a day - depends on how much tuya devices are in your local network). Co-authored-by: Tobias Dörfler Co-authored-by: rospogrigio <49229287+rospogrigio@users.noreply.github.com> --- custom_components/localtuya/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/common.py b/custom_components/localtuya/common.py index 4ad46f6..fdb3503 100644 --- a/custom_components/localtuya/common.py +++ b/custom_components/localtuya/common.py @@ -127,7 +127,7 @@ def async_config_entry_by_device_id(hass, device_id): if device_id in entry.data.get(CONF_DEVICES, []): return entry else: - _LOGGER.warning(f"Missing device configuration for device_id {device_id}") + _LOGGER.debug(f"Missing device configuration for device_id {device_id}") return None