Skip to content

Commit

Permalink
Fix battery qty (#2034)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ authored Feb 1, 2025
1 parent 71ab847 commit 8b808ee
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.9.3
rev: v0.9.4
hooks:
- id: ruff
args:
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 2025.2.0 (2025-02-01)

- Fix battery qty

# Version 2025.1.22 (2025-01-31)

- Add config option to define the hm_master_poll_after_send_intervals
Expand Down
2 changes: 1 addition & 1 deletion hahomematic/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import re
from typing import Any, Final, NamedTuple, Required, TypedDict

VERSION: Final = "2025.1.22"
VERSION: Final = "2025.2.0"

# default
DEFAULT_CUSTOM_ID: Final = "custom_id"
Expand Down
2 changes: 1 addition & 1 deletion hahomematic/model/calculated/operating_voltage_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class _BatteryData:
_BatteryData(model="HmIP-ASIR", battery=_BatteryType.R6, quantity=3),
_BatteryData(model="HmIP-ASIR-O", battery=_BatteryType.UNKNOWN),
_BatteryData(model="HmIP-DBB", battery=_BatteryType.R03),
_BatteryData(model="HmIP-DLD", battery=_BatteryType.R6, quantity=4),
_BatteryData(model="HmIP-DLD", battery=_BatteryType.R6, quantity=3),
_BatteryData(model="HmIP-DLS", battery=_BatteryType.CR2032),
_BatteryData(model="HmIP-DSD-PCB", battery=_BatteryType.R03, quantity=2),
_BatteryData(model="HmIP-ESI", battery=_BatteryType.R6, quantity=2),
Expand Down
6 changes: 3 additions & 3 deletions requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ pur==7.3.3
pydevccu==0.1.9
pylint-per-file-ignores==1.4.0
pylint-strict-informational==0.1
pylint==3.3.3
pylint==3.3.4
pytest-aiohttp==1.1.0
pytest-asyncio==0.25.2
pytest-asyncio==0.25.3
pytest-cov==6.0.0
pytest-rerunfailures==15.0
pytest-socket==0.7.0
pytest-timeout==2.3.1
pytest==8.3.4
types-python-slugify==8.0.2.20240310
uv==0.5.24
uv==0.5.26
4 changes: 2 additions & 2 deletions requirements_test_pre_commit.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bandit==1.8.2
codespell==2.4.0
codespell==2.4.1
pre-commit-hooks==v5.0.0
python-typing-update==v0.7.0
ruff==0.9.3
ruff==0.9.4
yamllint==1.35.1

0 comments on commit 8b808ee

Please sign in to comment.