Skip to content

Commit

Permalink
Add argument to cli command
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-th committed Jul 13, 2024
1 parent 8224021 commit ff20225
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/homematicip/cli/hmip.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,11 @@ def toggle_garage_door(id: str, channel: int = None):


@run.command
@click.argument("cooling", type=bool, nargs=1)
def set_cooling(cooling: bool):
"""Set the cooling mode for the HmIP Access Point."""
"""Set the cooling mode for the HmIP Access Point.
COOLING is a boolean value. True for cooling mode, False for heating mode."""
runner = asyncio.run(get_initialized_runner())

result = asyncio.run(async_set_cooling_home(runner.rest_connection, cooling))
Expand Down

0 comments on commit ff20225

Please sign in to comment.