Skip to content

Commit 9bdc3f7

Browse files
committed
docs(quick-charge): correct stale 1..240 range to 1..1440 in docstrings
1 parent 6b52c67 commit 9bdc3f7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎api/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ def api_quick_charge_status():
17691769

17701770
@app.post("/api/quick-charge/start")
17711771
def api_quick_charge_start(body: QuickChargeBody):
1772-
"""Start a quick charge for N minutes (default 60, range 1..240)."""
1772+
"""Start a quick charge for N minutes (default 60, range 1..1440)."""
17731773
dongle = _resolve_dongle()
17741774
if not dongle["datalog_serial"] or not dongle["inverter_serial"]:
17751775
raise HTTPException(400, "datalog_serial / inverter_serial not configured")

‎collector/quick_charge.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def start(
222222
minutes: Optional[int] = None,
223223
dry_run: bool = False,
224224
) -> Dict[str, Any]:
225-
"""Start a quick charge for `minutes` (default 60, range 1..240).
225+
"""Start a quick charge for `minutes` (default 60, range 1..1440).
226226
227227
Writes the duration register first, then enables the switch. A
228228
positive duration is required — never enable with duration 0.

0 commit comments

Comments
 (0)