Skip to content

Commit

Permalink
feat: add more msp_config data for ORP settings (#68)
Browse files Browse the repository at this point in the history
* feat: add more msp_config data for ORP settings

* fix: update poetry action

* fix: fix poetry install for pre-commit
  • Loading branch information
cryptk authored Jan 15, 2025
1 parent 85add28 commit d1ade32
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,25 @@ jobs:
- uses: wagoid/[email protected]
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.13"
poetry-version:
- "2.0.0"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.13"
- uses: abatilo/[email protected]
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install Dependencies
run: poetry install
shell: bash
- uses: pre-commit/[email protected]

test:
Expand All @@ -38,6 +51,8 @@ jobs:
matrix:
python-version:
- "3.13"
poetry-version:
- "2.0.0"
os:
- ubuntu-latest
- windows-latest
Expand All @@ -49,7 +64,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/[email protected]
- name: Set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install Dependencies
run: poetry install
shell: bash
Expand Down
6 changes: 6 additions & 0 deletions pyomnilogic_local/models/mspconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ class MSPCSAD(OmniBase):
calibration_value: float = Field(alias="CalibrationValue")
ph_low_alarm_value: float = Field(alias="PHLowAlarmLevel")
ph_high_alarm_value: float = Field(alias="PHHighAlarmLevel")
orp_target_level: int = Field(alias="ORP-Target-Level")
orp_runtime_level: int = Field(alias="ORP-Runtime-Level")
orp_low_alarm_level: int = Field(alias="ORP-Low-Alarm-Level")
orp_high_alarm_level: int = Field(alias="ORP-High-Alarm-Level")
orp_forced_on_time: int = Field(alias="ORP-Forced-On-Time")
orp_forced_enabled: bool = Field(alias="ORP-Forced-Enabled")


class MSPColorLogicLight(OmniBase):
Expand Down

0 comments on commit d1ade32

Please sign in to comment.