From 7e02977648f45e33cf1a09a9a6e0e1e89f3556be Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Tue, 26 Nov 2024 18:39:09 +0900 Subject: [PATCH] light: add debug logging of turn_on parameters When the service is called, to check the logic it is essential to know what the actual parameters received were. Issue #2552 --- custom_components/tuya_local/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/tuya_local/light.py b/custom_components/tuya_local/light.py index dfa78345f6..69139e8fd7 100644 --- a/custom_components/tuya_local/light.py +++ b/custom_components/tuya_local/light.py @@ -278,7 +278,7 @@ def named_color_from_hsv(self, hs, brightness): async def async_turn_on(self, **params): settings = {} color_mode = None - + _LOGGER.debug("Light turn_on: %s", params) if self._color_mode_dps and ATTR_WHITE in params: if self.color_mode != ColorMode.WHITE: color_mode = ColorMode.WHITE