From 18cbdc30fc1aef8b4411bc9ec9b25078db071722 Mon Sep 17 00:00:00 2001 From: Chris Jowett <421501+cryptk@users.noreply.github.com> Date: Wed, 15 Jan 2025 11:59:16 -0600 Subject: [PATCH 1/3] feat: add more msp_config data for ORP settings --- pyomnilogic_local/models/mspconfig.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyomnilogic_local/models/mspconfig.py b/pyomnilogic_local/models/mspconfig.py index e6a8167..bfc8208 100644 --- a/pyomnilogic_local/models/mspconfig.py +++ b/pyomnilogic_local/models/mspconfig.py @@ -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): From b4039ad001a995b983e230d8c3bc7a7e5fe6a14b Mon Sep 17 00:00:00 2001 From: Chris Jowett <421501+cryptk@users.noreply.github.com> Date: Wed, 15 Jan 2025 12:09:01 -0600 Subject: [PATCH 2/3] fix: update poetry action --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 132e828..8a2d60d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,8 @@ jobs: matrix: python-version: - "3.13" + poetry-version: + - "2.0.0" os: - ubuntu-latest - windows-latest @@ -49,7 +51,9 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - uses: abatilo/actions-poetry@v2.3.0 + - uses: abatilo/actions-poetry@v4.0.0 + with: + poetry-version: ${{ matrix.poetry-version }} - name: Install Dependencies run: poetry install shell: bash From 9414ffa09d9707bf7d4744c38b9d9ad9d441f519 Mon Sep 17 00:00:00 2001 From: Chris Jowett <421501+cryptk@users.noreply.github.com> Date: Wed, 15 Jan 2025 12:13:01 -0600 Subject: [PATCH 3/3] fix: fix poetry install for pre-commit --- .github/workflows/ci.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a2d60d..500e845 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,12 +24,25 @@ jobs: - uses: wagoid/commitlint-github-action@v5.3.0 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/actions-poetry@v2.3.0 + python-version: ${{ matrix.python-version }} + - name: Set up Poetry + uses: abatilo/actions-poetry@v4.0.0 + with: + poetry-version: ${{ matrix.poetry-version }} + - name: Install Dependencies + run: poetry install + shell: bash - uses: pre-commit/action@v3.0.0 test: @@ -51,7 +64,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - uses: abatilo/actions-poetry@v4.0.0 + - name: Set up Poetry + uses: abatilo/actions-poetry@v4.0.0 with: poetry-version: ${{ matrix.poetry-version }} - name: Install Dependencies