Skip to content

Commit

Permalink
reduce line lengths (pylint)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaschen committed Jan 21, 2024
1 parent ad92c11 commit 57db432
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ac_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@ def valid_inverter(inverter_id):

def parse_arguments():
"""Setup command line arguments."""
parser = argparse.ArgumentParser(description='Enable/disable storage charge from AC, show status')
parser = argparse.ArgumentParser(
description='Enable/disable storage charge from AC, show status'
)
parser.add_argument(
'state',
type=str,
choices=['on', 'off', 'status'],
help='State to set (on=allow charging from AC/off=disallow charging from AC/status=show current state)'
help='State to set (on=allow charging from AC/off='
'disallow charging from AC/status=show current state)'
)
parser.add_argument(
'--ip',
Expand Down

0 comments on commit 57db432

Please sign in to comment.