Skip to content

Commit

Permalink
light: add debug logging of turn_on parameters
Browse files Browse the repository at this point in the history
When the service is called, to check the logic it is essential to know
what the actual parameters received were.

Issue #2552
  • Loading branch information
make-all committed Nov 26, 2024
1 parent 52fbf09 commit 7e02977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tuya_local/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e02977

Please sign in to comment.