Skip to content

Commit

Permalink
Fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ committed Nov 30, 2024
1 parent 9d44c8c commit 8ae6e73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hahomematic/model/hub/data_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ def write_value(self, value: Any) -> None:

def _write_temporary_value(self, value: Any) -> None:
"""Update the temporary value of the data_point."""
temp_value = self._convert_value(old_value=self._current_value, new_value=value)
self._reset_temporary_value()

temp_value = self._convert_value(old_value=self._current_value, new_value=value)
if self._value == temp_value:
self._set_temporary_refreshed_at()
else:
Expand Down

0 comments on commit 8ae6e73

Please sign in to comment.