Skip to content

Commit ceed16e

Browse files
committed
Provide the old dictionary names, as these have also already been used (BenPru's HA-Integration)
1 parent b5cd90b commit ceed16e

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

luxtronik/calculations.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ def __init__(self):
317317
267: Celsius(["Desired_Room_Temperature", "Unknown_Calculation_267"]),
318318
}
319319

320+
@property
321+
def calculations(self):
322+
return self._data
323+
320324
def get_firmware_version(self):
321325
"""Get the firmware version as string."""
322326
return "".join([super(Calculations, self).get(i).value for i in range(81, 91)])

luxtronik/parameters.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,10 @@ def __init__(self, safe=True):
11991199
1152: Unknown("Unknown_Parameter_1152"),
12001200
}
12011201

1202+
@property
1203+
def parameters(self):
1204+
return self._data
1205+
12021206
def set(self, target, value):
12031207
"""Set parameter to new value."""
12041208
index, parameter = self._lookup(target, with_index=True)

luxtronik/visibilities.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,3 +397,7 @@ def __init__(self):
397397
378: Unknown(["Unknown_Visibility_378", "Unknown_Parameter_378"]),
398398
379: Unknown(["Unknown_Visibility_379", "Unknown_Parameter_379"]),
399399
}
400+
401+
@property
402+
def visibilities(self):
403+
return self._data

0 commit comments

Comments
 (0)