Skip to content

Commit

Permalink
Fix calculated climate sensor identification (#2060)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ authored Feb 5, 2025
1 parent 104a62a commit 61251d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Version 2025.2.2 (2025-02-03)
# Version 2025.2.3 (2025-02-05)

- Fix calculated climate sensor identification

# Version 2025.2.2 (2025-02-05)

- Catch get_metadata XMLRPC fault
- Catch JSONDecodeError on load/save cache files
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.2.2"
VERSION: Final = "2025.2.3"

# default
DEFAULT_CUSTOM_ID: Final = "custom_id"
Expand Down
2 changes: 1 addition & 1 deletion hahomematic/model/calculated/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _init_data_point_fields(self) -> None:
self._add_data_point(
parameter=Parameter.HUMIDITY, paramset_key=ParamsetKey.VALUES, data_point_type=DpSensor
)
if self._channel.get_generic_data_point(parameter=Parameter.TEMPERATURE, paramset_key=ParamsetKey.VALUES)
if self._channel.get_generic_data_point(parameter=Parameter.HUMIDITY, paramset_key=ParamsetKey.VALUES)
else self._add_data_point(
parameter=Parameter.ACTUAL_HUMIDITY, paramset_key=ParamsetKey.VALUES, data_point_type=DpSensor
)
Expand Down

0 comments on commit 61251d9

Please sign in to comment.