pymiele 0.3.5__py3-none-any.whl → 0.3.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pymiele/const.py +1 -1
- pymiele/model.py +27 -4
- {pymiele-0.3.5.dist-info → pymiele-0.3.6.dist-info}/METADATA +1 -1
- pymiele-0.3.6.dist-info/RECORD +10 -0
- pymiele-0.3.5.dist-info/RECORD +0 -10
- {pymiele-0.3.5.dist-info → pymiele-0.3.6.dist-info}/WHEEL +0 -0
- {pymiele-0.3.5.dist-info → pymiele-0.3.6.dist-info}/licenses/LICENSE +0 -0
- {pymiele-0.3.5.dist-info → pymiele-0.3.6.dist-info}/top_level.txt +0 -0
pymiele/const.py
CHANGED
pymiele/model.py
CHANGED
@@ -68,6 +68,29 @@ class MieleActionTargetTemperature:
|
|
68
68
|
return self.raw_data["max"]
|
69
69
|
|
70
70
|
|
71
|
+
class MielePlateStep:
|
72
|
+
"""Model of plate step."""
|
73
|
+
|
74
|
+
def __init__(self, raw_data: dict) -> None:
|
75
|
+
"""Initialize MielePlateStep."""
|
76
|
+
self.raw_data = raw_data
|
77
|
+
|
78
|
+
@property
|
79
|
+
def raw(self) -> dict:
|
80
|
+
"""Return raw data."""
|
81
|
+
return self.raw_data
|
82
|
+
|
83
|
+
@property
|
84
|
+
def value_raw(self) -> int | None:
|
85
|
+
"""Return raw value data."""
|
86
|
+
return self.raw_data["value_raw"]
|
87
|
+
|
88
|
+
@property
|
89
|
+
def value_localized(self) -> int | None:
|
90
|
+
"""Return localized value."""
|
91
|
+
return self.raw_data["value_localized"]
|
92
|
+
|
93
|
+
|
71
94
|
class MieleDevice:
|
72
95
|
"""Data for a single device from API."""
|
73
96
|
|
@@ -154,7 +177,7 @@ class MieleDevice:
|
|
154
177
|
]
|
155
178
|
|
156
179
|
@property
|
157
|
-
def state_core_target_temperature(self) -> list[
|
180
|
+
def state_core_target_temperature(self) -> list[MieleTemperature]:
|
158
181
|
"""Return the core target temperature of the device."""
|
159
182
|
return [
|
160
183
|
MieleTemperature(temp)
|
@@ -257,9 +280,9 @@ class MieleDevice:
|
|
257
280
|
self.raw_data["state"]["ventilationStep"]["value_raw"] = new_value
|
258
281
|
|
259
282
|
@property
|
260
|
-
def state_plate_step(self) -> list[
|
283
|
+
def state_plate_step(self) -> list[MielePlateStep]:
|
261
284
|
"""Return the plate step of the device."""
|
262
|
-
return self.raw_data["state"]["plateStep"]
|
285
|
+
return [MielePlateStep(plate) for plate in self.raw_data["state"]["plateStep"]]
|
263
286
|
|
264
287
|
@property
|
265
288
|
def state_eco_feedback(self) -> dict | None:
|
@@ -362,7 +385,7 @@ class MieleAction:
|
|
362
385
|
return list(self.raw_data["runOnTime"])
|
363
386
|
|
364
387
|
@property
|
365
|
-
def target_temperature(self) -> list[
|
388
|
+
def target_temperature(self) -> list[MieleActionTargetTemperature]:
|
366
389
|
"""Return list of target temperature actions."""
|
367
390
|
return [
|
368
391
|
MieleActionTargetTemperature(temp)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
pymiele/__init__.py,sha256=w_JvyaBHVGM7eo-FFwIWFbQUeAowoA_fbnAfCWJFGek,221
|
2
|
+
pymiele/const.py,sha256=tKBgQVpExWSIpP2VxJKJyxEBmZ6BQGohNZcL-6_ZRDc,237
|
3
|
+
pymiele/model.py,sha256=5MYK8SOG4oBNsXXGB6InOnqDLA-easCJbBXhaMaVK_8,15611
|
4
|
+
pymiele/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
+
pymiele/pymiele.py,sha256=M5P_rW61XZV06aelw5i9-qzJ9exabMYgLcehzuKd7-Y,8723
|
6
|
+
pymiele-0.3.6.dist-info/licenses/LICENSE,sha256=scGm4_U2pd-rsGa6Edf6zsXFebrMT4RoyQz7-904_Wg,1072
|
7
|
+
pymiele-0.3.6.dist-info/METADATA,sha256=geGMRgPZMwvufJY_4eQbgXhr_NRhS2CLhYqFYOhWjUw,747
|
8
|
+
pymiele-0.3.6.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
|
9
|
+
pymiele-0.3.6.dist-info/top_level.txt,sha256=BwkHrSO2w_Bfxh6s8Ikcao5enEuQOpQhJ3SwUXBqY10,8
|
10
|
+
pymiele-0.3.6.dist-info/RECORD,,
|
pymiele-0.3.5.dist-info/RECORD
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
pymiele/__init__.py,sha256=w_JvyaBHVGM7eo-FFwIWFbQUeAowoA_fbnAfCWJFGek,221
|
2
|
-
pymiele/const.py,sha256=k5GfQFlwWb_PMu3F4DDAJTvJYJ3JS4snMpNWgs8TNJE,237
|
3
|
-
pymiele/model.py,sha256=kqI9h3e3uqD1swxMtKCfFjkw2T2x5FoZagLEwwRkbhs,14969
|
4
|
-
pymiele/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
pymiele/pymiele.py,sha256=M5P_rW61XZV06aelw5i9-qzJ9exabMYgLcehzuKd7-Y,8723
|
6
|
-
pymiele-0.3.5.dist-info/licenses/LICENSE,sha256=scGm4_U2pd-rsGa6Edf6zsXFebrMT4RoyQz7-904_Wg,1072
|
7
|
-
pymiele-0.3.5.dist-info/METADATA,sha256=ssFKRrQHP3ds2dhlyAPqWTmzLVW5vScv_TL7m9OyYVw,747
|
8
|
-
pymiele-0.3.5.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
|
9
|
-
pymiele-0.3.5.dist-info/top_level.txt,sha256=BwkHrSO2w_Bfxh6s8Ikcao5enEuQOpQhJ3SwUXBqY10,8
|
10
|
-
pymiele-0.3.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|