python-bsblan 6.1.2__tar.gz → 6.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/docs.yaml +1 -1
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/linting.yaml +2 -2
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/release-drafter.yaml +1 -1
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/release.yaml +3 -3
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/tests.yaml +3 -3
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/typing.yaml +1 -1
- python_bsblan-6.1.4/.nvmrc +1 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/PKG-INFO +1 -1
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/package-lock.json +4 -4
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/package.json +1 -1
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/pyproject.toml +5 -5
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/src/bsblan/_validation.py +3 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/src/bsblan/bsblan.py +16 -2
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_api_validation.py +12 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_circuit.py +77 -1
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_pps.py +10 -2
- python_bsblan-6.1.2/.nvmrc +0 -1
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.editorconfig +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.gitattributes +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/CODE_OF_CONDUCT.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/CONTRIBUTING.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/ISSUE_TEMPLATE/PULL_REQUEST_TEMPLATE.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/SECURITY.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/agents/pr-review.agent.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/agents/security-reviewer.agent.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/agents/tdd-refactor.agent.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/copilot-instructions.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/hooks/run-validation-after-edits.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/hooks/run_validation_after_edits.sh +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/labels.yml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/prompts/add-parameter.prompt.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/prompts/code-review.prompt.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/release-drafter.yml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/renovate.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/skills/bsblan-parameters/SKILL.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/skills/bsblan-testing/SKILL.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/skills/feature-doc-updates/SKILL.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/auto-approve-renovate.yml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/codeql.yaml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/dependency-review.yaml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/labels.yaml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/lock.yaml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/pr-labels.yaml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/scorecard.yml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/workflows/stale.yaml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.github/zizmor.yml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.gitignore +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.pre-commit-config.yaml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.prettierignore +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/.yamllint +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/AGENTS.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/CLAUDE.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/LICENSE.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/Makefile +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/README.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/docs/api/client.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/docs/api/constants.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/docs/api/exceptions.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/docs/api/models.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/docs/getting-started.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/docs/index.md +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/examples/control.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/examples/discovery.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/examples/fetch_param.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/examples/profile_init.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/examples/ruff.toml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/examples/speed_test.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/mkdocs.yml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/sonar-project.properties +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/src/bsblan/__init__.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/src/bsblan/_temperature.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/src/bsblan/_transport.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/src/bsblan/_version.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/src/bsblan/constants.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/src/bsblan/exceptions.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/src/bsblan/models.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/src/bsblan/py.typed +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/src/bsblan/utility.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/__init__.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/conftest.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/device.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/dict_version.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/hot_water_state.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/info.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/password.txt +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/pps_device.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/pps_state.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/pps_static_values.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/sensor.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/state.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/state_circuit2.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/static_state.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/static_state_circuit2.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/thermostat_hvac.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/thermostat_temp.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/fixtures/time.json +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/ruff.toml +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_api_initialization.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_auth.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_backoff_retry.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_bsblan.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_bsblan_edge_cases.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_configuration.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_constants.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_context_manager.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_device.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_dhw_time_switch.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_entity_info.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_entity_info_ha.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_heating_schedule.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_hot_water_additional.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_hotwater_state.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_include_parameter.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_info.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_initialization.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_read_parameters.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_reset_validation.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_schedule_models.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_sensor.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_set_heating_schedule.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_set_hot_water_schedule.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_set_hotwater.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_state.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_static_state.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_temperature_unit.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_temperature_validation.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_thermostat.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_time.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_utility.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_utility_additional.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_utility_edge_cases.py +0 -0
- {python_bsblan-6.1.2 → python_bsblan-6.1.4}/tests/test_version_errors.py +0 -0
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
with:
|
|
32
32
|
enable-cache: true
|
|
33
33
|
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
|
|
34
|
-
uses: actions/setup-python@
|
|
34
|
+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
35
35
|
with:
|
|
36
36
|
python-version: ${{ env.DEFAULT_PYTHON }}
|
|
37
37
|
- name: 🏗 Install dependencies
|
|
@@ -30,7 +30,7 @@ jobs:
|
|
|
30
30
|
enable-cache: true
|
|
31
31
|
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
|
|
32
32
|
id: python
|
|
33
|
-
uses: actions/setup-python@
|
|
33
|
+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
34
34
|
with:
|
|
35
35
|
python-version: ${{ env.DEFAULT_PYTHON }}
|
|
36
36
|
- name: 🏗 Install Python dependencies
|
|
@@ -54,7 +54,7 @@ jobs:
|
|
|
54
54
|
enable-cache: true
|
|
55
55
|
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
|
|
56
56
|
id: python
|
|
57
|
-
uses: actions/setup-python@
|
|
57
|
+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
58
58
|
with:
|
|
59
59
|
python-version: ${{ env.DEFAULT_PYTHON }}
|
|
60
60
|
- name: 🏗 Install Python dependencies
|
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
steps:
|
|
37
37
|
- name: 🚀 Run Release Drafter
|
|
38
38
|
# yamllint disable-line rule:line-length
|
|
39
|
-
uses: release-drafter/release-drafter@
|
|
39
|
+
uses: release-drafter/release-drafter@ed4bc48ec97379be2258e7b7ac2624a3e26ab809 # v7.4.0
|
|
40
40
|
with:
|
|
41
41
|
prerelease: ${{ github.event.inputs.prerelease == 'true' }}
|
|
42
42
|
prerelease-identifier: ${{ github.event.inputs.prerelease_identifier }}
|
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
enable-cache: false
|
|
35
35
|
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
|
|
36
36
|
id: python
|
|
37
|
-
uses: actions/setup-python@
|
|
37
|
+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
38
38
|
with:
|
|
39
39
|
python-version: ${{ env.DEFAULT_PYTHON }}
|
|
40
40
|
- name: 🏗 Install dependencies
|
|
@@ -50,7 +50,7 @@ jobs:
|
|
|
50
50
|
- name: 🏗 Build package
|
|
51
51
|
run: uv build
|
|
52
52
|
- name: 🔏 Attest build provenance
|
|
53
|
-
uses: actions/attest-build-provenance@
|
|
53
|
+
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
|
|
54
54
|
with:
|
|
55
55
|
subject-path: ./dist/*
|
|
56
56
|
- name: 🚀 Publish to PyPi
|
|
@@ -59,7 +59,7 @@ jobs:
|
|
|
59
59
|
verbose: true
|
|
60
60
|
print-hash: true
|
|
61
61
|
- name: ✍️ Sign published artifacts
|
|
62
|
-
uses: sigstore/gh-action-sigstore-python@
|
|
62
|
+
uses: sigstore/gh-action-sigstore-python@5b79a39c381910c090341a2c9b0bf022c8b387e1 # v3.4.0
|
|
63
63
|
with:
|
|
64
64
|
inputs: ./dist/*.tar.gz ./dist/*.whl
|
|
65
65
|
release-signing-artifacts: false
|
|
@@ -38,7 +38,7 @@ jobs:
|
|
|
38
38
|
enable-cache: true
|
|
39
39
|
- name: 🏗 Set up Python ${{ matrix.python }}
|
|
40
40
|
id: python
|
|
41
|
-
uses: actions/setup-python@
|
|
41
|
+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
42
42
|
with:
|
|
43
43
|
python-version: ${{ matrix.python }}
|
|
44
44
|
- name: 🏗 Install dependencies
|
|
@@ -73,7 +73,7 @@ jobs:
|
|
|
73
73
|
enable-cache: true
|
|
74
74
|
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
|
|
75
75
|
id: python
|
|
76
|
-
uses: actions/setup-python@
|
|
76
|
+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
77
77
|
with:
|
|
78
78
|
python-version: ${{ env.DEFAULT_PYTHON }}
|
|
79
79
|
- name: 🏗 Install dependencies
|
|
@@ -101,7 +101,7 @@ jobs:
|
|
|
101
101
|
- name: SonarQube Cloud Scan
|
|
102
102
|
if: env.HAS_SONAR_TOKEN == 'true' && (github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork)
|
|
103
103
|
# yamllint disable-line rule:line-length
|
|
104
|
-
uses: SonarSource/sonarqube-scan-action@
|
|
104
|
+
uses: SonarSource/sonarqube-scan-action@713881670b6b3676cda39549040e2d88c70d582e # v8.2
|
|
105
105
|
env:
|
|
106
106
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
107
107
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
@@ -33,7 +33,7 @@ jobs:
|
|
|
33
33
|
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
|
|
34
34
|
id: python
|
|
35
35
|
# yamllint disable-line rule:line-length
|
|
36
|
-
uses: actions/setup-python@
|
|
36
|
+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
37
37
|
with:
|
|
38
38
|
python-version: ${{ env.DEFAULT_PYTHON }}
|
|
39
39
|
- name: 🏗 Install dependencies
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24.18.0
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"url-parse": "1.5.10"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"prettier": "3.8.
|
|
15
|
+
"prettier": "3.8.5"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"node_modules/prettier": {
|
|
19
|
-
"version": "3.8.
|
|
20
|
-
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.
|
|
21
|
-
"integrity": "sha512-
|
|
19
|
+
"version": "3.8.5",
|
|
20
|
+
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.5.tgz",
|
|
21
|
+
"integrity": "sha512-zxcTTCedNGJM4R8sj/Cq/F0W/c4iE0afWBcBwMTRtw4WHYP9TWkYjdiH3npPRUYsXQCPR0hTU9yjovOu+E6EQA==",
|
|
22
22
|
"dev": true,
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"bin": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "python-bsblan"
|
|
3
|
-
version = "6.1.
|
|
3
|
+
version = "6.1.4"
|
|
4
4
|
description = "Asynchronous Python client for BSBLAN API"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Willem-Jan van Rootselaar", email = "liudgervr@gmail.com"}
|
|
@@ -189,14 +189,14 @@ dev = [
|
|
|
189
189
|
"blacken-docs==1.20.0",
|
|
190
190
|
"codespell==2.4.2",
|
|
191
191
|
"covdefaults==2.3.0",
|
|
192
|
-
"coverage==7.14.
|
|
192
|
+
"coverage==7.14.1",
|
|
193
193
|
"darglint==1.8.1",
|
|
194
194
|
"flake8==7.3.0",
|
|
195
195
|
"flake8-simplify==0.30.0",
|
|
196
196
|
# hatch is required to support type hinting and proper packaging of the py.typed file.
|
|
197
197
|
"hatch>=1.14.1",
|
|
198
198
|
"isort==8.0.1",
|
|
199
|
-
"ty==0.0.
|
|
199
|
+
"ty==0.0.55",
|
|
200
200
|
"prek>=0.3.3",
|
|
201
201
|
"pre-commit-hooks==6.0.0",
|
|
202
202
|
"pylint==4.0.5",
|
|
@@ -205,8 +205,8 @@ dev = [
|
|
|
205
205
|
"pytest-cov==7.1.0",
|
|
206
206
|
"pytest-xdist>=3.8.0",
|
|
207
207
|
"pyupgrade==3.21.2",
|
|
208
|
-
"ruff==0.15.
|
|
209
|
-
"safety==3.
|
|
208
|
+
"ruff==0.15.20",
|
|
209
|
+
"safety==3.8.1",
|
|
210
210
|
"vulture==2.16",
|
|
211
211
|
"yamllint==1.38.0",
|
|
212
212
|
"zeroconf>=0.148.0",
|
|
@@ -96,6 +96,9 @@ class SectionValidator:
|
|
|
96
96
|
dict[str, str]: Mapping of parameter id to parameter name.
|
|
97
97
|
|
|
98
98
|
"""
|
|
99
|
+
if not self._api_validator:
|
|
100
|
+
raise BSBLANError(ErrorMsg.API_VALIDATOR_NOT_INITIALIZED)
|
|
101
|
+
|
|
99
102
|
return cast("APIValidator", self._api_validator).get_section_params(section)
|
|
100
103
|
|
|
101
104
|
def apply_bus_specific_api_config(
|
|
@@ -19,6 +19,7 @@ from ._version import VersionResolver
|
|
|
19
19
|
from .constants import (
|
|
20
20
|
API_BASIC,
|
|
21
21
|
API_FULL,
|
|
22
|
+
MIN_SUPPORTED_JSON_API,
|
|
22
23
|
APIConfig,
|
|
23
24
|
CircuitConfig,
|
|
24
25
|
ErrorMsg,
|
|
@@ -187,6 +188,13 @@ class BSBLAN:
|
|
|
187
188
|
# circuits == [1, 2] for a dual-circuit controller
|
|
188
189
|
|
|
189
190
|
"""
|
|
191
|
+
if self._json_api_version == MIN_SUPPORTED_JSON_API:
|
|
192
|
+
logger.debug(
|
|
193
|
+
"BSBLAN JSON-API version 1.0 detected; skipping circuit discovery and "
|
|
194
|
+
"assuming only circuit 1 is available"
|
|
195
|
+
)
|
|
196
|
+
self._available_circuits = {1}
|
|
197
|
+
return [1]
|
|
190
198
|
if self._uses_pps_bus:
|
|
191
199
|
return await self._get_available_pps_circuits()
|
|
192
200
|
|
|
@@ -204,8 +212,9 @@ class BSBLAN:
|
|
|
204
212
|
continue
|
|
205
213
|
|
|
206
214
|
# A circuit exists if the response contains the operating mode key
|
|
207
|
-
# with
|
|
208
|
-
|
|
215
|
+
# with a valid value (not an empty dict, and not None/"---").
|
|
216
|
+
param_data = response.get(param_id)
|
|
217
|
+
if not param_data or param_data.get("value") in (None, "---"):
|
|
209
218
|
logger.debug(
|
|
210
219
|
"Circuit %d has no operating mode data (not supported)",
|
|
211
220
|
circuit,
|
|
@@ -230,6 +239,11 @@ class BSBLAN:
|
|
|
230
239
|
logger.debug("PPS climate circuit has no operating mode data")
|
|
231
240
|
self._available_circuits = set()
|
|
232
241
|
return []
|
|
242
|
+
param_data = response[param_id]
|
|
243
|
+
if param_data.get("value") in (None, "---"):
|
|
244
|
+
logger.debug("PPS climate circuit has invalid operating mode value")
|
|
245
|
+
self._available_circuits = set()
|
|
246
|
+
return []
|
|
233
247
|
self._available_circuits = {1}
|
|
234
248
|
return [1]
|
|
235
249
|
|
|
@@ -89,6 +89,18 @@ async def test_validate_api_section_no_validator() -> None:
|
|
|
89
89
|
await bsblan._validator._validate_api_section("device")
|
|
90
90
|
|
|
91
91
|
|
|
92
|
+
@pytest.mark.asyncio
|
|
93
|
+
async def test_get_section_params_no_validator() -> None:
|
|
94
|
+
"""Test section parameter lookup with no validator initialized."""
|
|
95
|
+
async with aiohttp.ClientSession() as session:
|
|
96
|
+
bsblan = BSBLAN(BSBLANConfig(host="example.com"), session=session)
|
|
97
|
+
|
|
98
|
+
bsblan._validator._api_validator = None
|
|
99
|
+
|
|
100
|
+
with pytest.raises(BSBLANError, match=ErrorMsg.API_VALIDATOR_NOT_INITIALIZED):
|
|
101
|
+
bsblan._validator.get_section_params("device")
|
|
102
|
+
|
|
103
|
+
|
|
92
104
|
@pytest.mark.asyncio
|
|
93
105
|
async def test_validate_api_section_no_api_data() -> None:
|
|
94
106
|
"""Test API section validation with no API data initialized."""
|
|
@@ -13,7 +13,12 @@ import pytest
|
|
|
13
13
|
from aresponses import Response, ResponsesMockServer
|
|
14
14
|
|
|
15
15
|
from bsblan import BSBLAN, BSBLANConfig, State, StaticState
|
|
16
|
-
from bsblan.constants import
|
|
16
|
+
from bsblan.constants import (
|
|
17
|
+
MIN_SUPPORTED_JSON_API,
|
|
18
|
+
CircuitConfig,
|
|
19
|
+
ErrorMsg,
|
|
20
|
+
build_api_config,
|
|
21
|
+
)
|
|
17
22
|
from bsblan.exceptions import BSBLANError, BSBLANInvalidParameterError
|
|
18
23
|
from bsblan.utility import APIValidator
|
|
19
24
|
|
|
@@ -769,6 +774,77 @@ async def test_get_available_circuits_all_probes_missing(
|
|
|
769
774
|
] == expected_params
|
|
770
775
|
|
|
771
776
|
|
|
777
|
+
@pytest.mark.asyncio
|
|
778
|
+
async def test_get_available_circuits_inactive_marker_excludes_circuit(
|
|
779
|
+
mock_bsblan_circuit: BSBLAN,
|
|
780
|
+
) -> None:
|
|
781
|
+
"""Test a circuit whose probe value is "---" is excluded."""
|
|
782
|
+
bsblan = mock_bsblan_circuit
|
|
783
|
+
|
|
784
|
+
async def mock_request(
|
|
785
|
+
**kwargs: Any,
|
|
786
|
+
) -> dict[str, Any]:
|
|
787
|
+
params = kwargs.get("params", {})
|
|
788
|
+
param_id = params.get("Parameter", "")
|
|
789
|
+
if param_id == "700":
|
|
790
|
+
return {"700": {"value": "1", "unit": "", "desc": "Automatic"}}
|
|
791
|
+
# HC2 reports the inactive marker value
|
|
792
|
+
if param_id == "1000":
|
|
793
|
+
return {"1000": {"value": "---", "unit": "", "desc": ""}}
|
|
794
|
+
msg = f"Unexpected parameter probe: {param_id}"
|
|
795
|
+
raise AssertionError(msg)
|
|
796
|
+
|
|
797
|
+
bsblan._request = AsyncMock(side_effect=mock_request) # type: ignore[method-assign]
|
|
798
|
+
|
|
799
|
+
circuits = await bsblan.get_available_circuits()
|
|
800
|
+
assert circuits == [1]
|
|
801
|
+
assert bsblan._available_circuits == {1}
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
@pytest.mark.asyncio
|
|
805
|
+
async def test_get_available_circuits_none_value_excludes_circuit(
|
|
806
|
+
mock_bsblan_circuit: BSBLAN,
|
|
807
|
+
) -> None:
|
|
808
|
+
"""Test a circuit whose probe value is None is excluded."""
|
|
809
|
+
bsblan = mock_bsblan_circuit
|
|
810
|
+
|
|
811
|
+
async def mock_request(
|
|
812
|
+
**kwargs: Any,
|
|
813
|
+
) -> dict[str, Any]:
|
|
814
|
+
params = kwargs.get("params", {})
|
|
815
|
+
param_id = params.get("Parameter", "")
|
|
816
|
+
if param_id == "700":
|
|
817
|
+
return {"700": {"value": "1", "unit": "", "desc": "Automatic"}}
|
|
818
|
+
if param_id == "1000":
|
|
819
|
+
return {"1000": {"value": None, "unit": "", "desc": ""}}
|
|
820
|
+
msg = f"Unexpected parameter probe: {param_id}"
|
|
821
|
+
raise AssertionError(msg)
|
|
822
|
+
|
|
823
|
+
bsblan._request = AsyncMock(side_effect=mock_request) # type: ignore[method-assign]
|
|
824
|
+
|
|
825
|
+
circuits = await bsblan.get_available_circuits()
|
|
826
|
+
assert circuits == [1]
|
|
827
|
+
assert bsblan._available_circuits == {1}
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
@pytest.mark.asyncio
|
|
831
|
+
async def test_get_available_circuits_json_api_v1_skips_discovery(
|
|
832
|
+
mock_bsblan_circuit: BSBLAN,
|
|
833
|
+
) -> None:
|
|
834
|
+
"""Test that JSON-API version 1.0 skips circuit discovery and returns [1]."""
|
|
835
|
+
bsblan = mock_bsblan_circuit
|
|
836
|
+
bsblan._json_api_version = MIN_SUPPORTED_JSON_API
|
|
837
|
+
|
|
838
|
+
request_mock = AsyncMock()
|
|
839
|
+
bsblan._request = request_mock # type: ignore[method-assign]
|
|
840
|
+
|
|
841
|
+
circuits = await bsblan.get_available_circuits()
|
|
842
|
+
|
|
843
|
+
assert circuits == [1]
|
|
844
|
+
assert bsblan._available_circuits == {1}
|
|
845
|
+
request_mock.assert_not_awaited()
|
|
846
|
+
|
|
847
|
+
|
|
772
848
|
@pytest.mark.asyncio
|
|
773
849
|
async def test_temperature_range_skips_unavailable_discovered_circuit(
|
|
774
850
|
mock_bsblan_circuit: BSBLAN,
|
|
@@ -357,12 +357,20 @@ async def test_pps_circuit_discovery_returns_single_climate(
|
|
|
357
357
|
|
|
358
358
|
|
|
359
359
|
@pytest.mark.asyncio
|
|
360
|
-
@pytest.mark.parametrize(
|
|
360
|
+
@pytest.mark.parametrize(
|
|
361
|
+
"response",
|
|
362
|
+
[
|
|
363
|
+
{},
|
|
364
|
+
{"15000": {}},
|
|
365
|
+
{"15000": {"value": "---", "unit": "", "desc": ""}},
|
|
366
|
+
{"15000": {"value": None, "unit": "", "desc": ""}},
|
|
367
|
+
],
|
|
368
|
+
)
|
|
361
369
|
async def test_pps_circuit_discovery_returns_empty_without_mode(
|
|
362
370
|
pps_bsblan: BSBLAN,
|
|
363
371
|
response: dict[str, Any],
|
|
364
372
|
) -> None:
|
|
365
|
-
"""Test PPS circuit discovery handles missing
|
|
373
|
+
"""Test PPS circuit discovery handles missing or inactive mode data."""
|
|
366
374
|
pps_bsblan._request = AsyncMock(return_value=response) # type: ignore[method-assign]
|
|
367
375
|
|
|
368
376
|
circuits = await pps_bsblan.get_available_circuits()
|
python_bsblan-6.1.2/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
24.16.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|