Skip to content

Commit

Permalink
Set state_uncertain on value write
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ committed Nov 19, 2024
1 parent d91d83a commit 23ed618
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Version 2024.11.7 (2024-11-19)

- Set state_uncertain on value write
-

# Version 2024.11.6 (2024-11-19)

- Cleanup data point
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, Required, TypedDict

VERSION: Final = "2024.11.6"
VERSION: Final = "2024.11.7"

DEFAULT_CONNECTION_CHECKER_INTERVAL: Final = 15 # check if connection is available via rpc ping
DEFAULT_CUSTOM_ID: Final = "custom_id"
Expand Down
2 changes: 1 addition & 1 deletion hahomematic/model/data_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ def write_value(self, value: Any) -> tuple[ParameterT, ParameterT]:
self._set_modified_at()
self._previous_value = old_value
self._current_value = new_value
self._state_uncertain = False
self._state_uncertain = False
self.fire_data_point_updated_callback()
return (old_value, new_value)

Expand Down
2 changes: 1 addition & 1 deletion hahomematic/model/hub/data_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def write_value(self, value: Any) -> None:
self._set_modified_at()
self._previous_value = old_value
self._current_value = new_value
self._state_uncertain = False
self._state_uncertain = False
self.fire_data_point_updated_callback()

def _write_temporary_value(self, value: Any) -> None:
Expand Down

0 comments on commit 23ed618

Please sign in to comment.