Skip to content

Commit d8582b0

Browse files
committed
bugfix
1 parent 9a31e44 commit d8582b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

luxtronik/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _write(
125125
"%s: Parameter '%s' not safe for writing!", self._host, param.name
126126
)
127127
continue
128-
heatpump_value = param.get_heatpump_value()
128+
heatpump_value = param.raw
129129
LOGGER.info(
130130
"%s: Parameter '%d' set to '%s' = '%s'",
131131
self._host,

luxtronik/datatypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Base:
2222

2323
def __init__(self, data_field_def):
2424
"""Initialize the data field class."""
25-
self.value = None
25+
self._raw = None
2626
self._data_field_def = data_field_def
2727

2828
@property
@@ -89,7 +89,7 @@ def options(cls):
8989
def from_heatpump(cls, value):
9090
if value in cls.codes:
9191
return cls.codes.get(value)
92-
return str(value)
92+
return None
9393

9494
@classmethod
9595
def to_heatpump(cls, value):

0 commit comments

Comments
 (0)