Skip to content

Commit d1ade32

Browse files
authored
feat: add more msp_config data for ORP settings (#68)
* feat: add more msp_config data for ORP settings * fix: update poetry action * fix: fix poetry install for pre-commit
1 parent 85add28 commit d1ade32

2 files changed

Lines changed: 28 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,25 @@ jobs:
2424
- uses: wagoid/commitlint-github-action@v5.3.0
2525
lint:
2626
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
python-version:
30+
- "3.13"
31+
poetry-version:
32+
- "2.0.0"
2733
steps:
2834
- uses: actions/checkout@v3
29-
- uses: actions/setup-python@v4
35+
- name: Set up Python
36+
uses: actions/setup-python@v4
3037
with:
31-
python-version: "3.13"
32-
- uses: abatilo/actions-poetry@v2.3.0
38+
python-version: ${{ matrix.python-version }}
39+
- name: Set up Poetry
40+
uses: abatilo/actions-poetry@v4.0.0
41+
with:
42+
poetry-version: ${{ matrix.poetry-version }}
43+
- name: Install Dependencies
44+
run: poetry install
45+
shell: bash
3346
- uses: pre-commit/action@v3.0.0
3447

3548
test:
@@ -38,6 +51,8 @@ jobs:
3851
matrix:
3952
python-version:
4053
- "3.13"
54+
poetry-version:
55+
- "2.0.0"
4156
os:
4257
- ubuntu-latest
4358
- windows-latest
@@ -49,7 +64,10 @@ jobs:
4964
uses: actions/setup-python@v4
5065
with:
5166
python-version: ${{ matrix.python-version }}
52-
- uses: abatilo/actions-poetry@v2.3.0
67+
- name: Set up Poetry
68+
uses: abatilo/actions-poetry@v4.0.0
69+
with:
70+
poetry-version: ${{ matrix.poetry-version }}
5371
- name: Install Dependencies
5472
run: poetry install
5573
shell: bash

pyomnilogic_local/models/mspconfig.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ class MSPCSAD(OmniBase):
174174
calibration_value: float = Field(alias="CalibrationValue")
175175
ph_low_alarm_value: float = Field(alias="PHLowAlarmLevel")
176176
ph_high_alarm_value: float = Field(alias="PHHighAlarmLevel")
177+
orp_target_level: int = Field(alias="ORP-Target-Level")
178+
orp_runtime_level: int = Field(alias="ORP-Runtime-Level")
179+
orp_low_alarm_level: int = Field(alias="ORP-Low-Alarm-Level")
180+
orp_high_alarm_level: int = Field(alias="ORP-High-Alarm-Level")
181+
orp_forced_on_time: int = Field(alias="ORP-Forced-On-Time")
182+
orp_forced_enabled: bool = Field(alias="ORP-Forced-Enabled")
177183

178184

179185
class MSPColorLogicLight(OmniBase):

0 commit comments

Comments
 (0)