Просмотр исходного кода

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
Jason Rumney 1 год назад
Родитель
Сommit
7e02977648
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      custom_components/tuya_local/light.py

+ 1 - 1
custom_components/tuya_local/light.py

@@ -278,7 +278,7 @@ class TuyaLocalLight(TuyaLocalEntity, LightEntity):
     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