Skip to content

Commit

Permalink
Debug LevelControl kwargs parameter (#1864)
Browse files Browse the repository at this point in the history
* Debug `LevelControl` kwargs parameter

Add the `kwargs` parameter from the command() method to the debug log.

* Update __init__.py
  • Loading branch information
javicalle authored Oct 25, 2022
1 parent 5abcf7f commit fe65de1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion zhaquirks/tuya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1292,10 +1292,11 @@ def command(
):
"""Override the default Cluster command."""
_LOGGER.debug(
"%s Sending Tuya Cluster Command.. Cluster Command is %x, Arguments are %s",
"%s Sending Tuya Cluster Command.. Cluster Command is %x, Arguments are %s, %s",
self.endpoint.device.ieee,
command_id,
args,
kwargs,
)
# Move to level
# move_to_level_with_on_off
Expand Down
3 changes: 2 additions & 1 deletion zhaquirks/tuya/mcu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,10 @@ async def command(
):
"""Override the default Cluster command."""
self.debug(
"Sending Tuya Cluster Command. Cluster Command is %x, Arguments are %s",
"Sending Tuya Cluster Command. Cluster Command is %x, Arguments are %s, %s",
command_id,
args,
kwargs,
)

# getting the level value
Expand Down

0 comments on commit fe65de1

Please sign in to comment.