Skip to content

Commit

Permalink
Assign MixedCircuitMode datatype to parameters 695 and 696 (#175)
Browse files Browse the repository at this point in the history
* parameters: Assign MixedCircuitMode datatype to parameters 695 and 696

These parameters have been identified in the context of [1]. Also apply change from ruff linting



[1]: #174
  • Loading branch information
kbabioch authored Apr 24, 2024
1 parent 723e51a commit 493e140
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions luxtronik/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,8 @@ def __init__(self, safe=True):
692: Unknown("ID_Einst_Vorl_max_MK2"),
693: Unknown("ID_SU_FrkdMK1"),
694: Unknown("ID_SU_FrkdMK2"),
695: Unknown("ID_Ba_Hz_MK1_akt"),
696: Unknown("ID_Ba_Hz_MK2_akt"),
695: MixedCircuitMode("ID_Ba_Hz_MK1_akt"),
696: MixedCircuitMode("ID_Ba_Hz_MK2_akt"),
697: Unknown("ID_Einst_Zirk_Ein_akt"),
698: Unknown("ID_Einst_Zirk_Aus_akt"),
699: Unknown("ID_Einst_Heizgrenze"),
Expand Down Expand Up @@ -1206,8 +1206,6 @@ def set(self, target, value):
if parameter.writeable or not self.safe:
self.queue[index] = parameter.to_heatpump(value)
else:
self.logger.warning(
"Parameter '%s' not safe for writing!", parameter.name
)
self.logger.warning("Parameter '%s' not safe for writing!", parameter.name)
else:
self.logger.warning("Parameter '%s' not found", target)

0 comments on commit 493e140

Please sign in to comment.