Skip to content

Commit

Permalink
feat: improve set chlor params (#36)
Browse files Browse the repository at this point in the history
* ci: cleanup poetry lock file

* feat: add default values for async_set_chlorinator_params
  • Loading branch information
cryptk committed Jun 7, 2023
1 parent 7f81fef commit 97767f3
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 65 deletions.
100 changes: 41 additions & 59 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pyomnilogic_local/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,13 +435,13 @@ async def async_set_chlorinator_params(
self,
pool_id: int,
equipment_id: int,
cfg_state: int,
op_mode: int,
bow_type: int,
cell_type: int,
timed_percent: int,
sc_timeout: int,
orp_timeout: int,
cfg_state: int = 3,
op_mode: int = 1,
bow_type: int = 0,
cell_type: int = 4,
sc_timeout: int = 24,
orp_timeout: int = 24,
) -> None:
body_element = ET.Element("Request", {"xmlns": "http://nextgen.hayward.com/api"})

Expand Down

0 comments on commit 97767f3

Please sign in to comment.