python-bsblan 0.5.17__tar.gz → 0.5.18__tar.gz
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.
- {python_bsblan-0.5.17 → python_bsblan-0.5.18}/PKG-INFO +1 -1
- {python_bsblan-0.5.17 → python_bsblan-0.5.18}/pyproject.toml +1 -1
- {python_bsblan-0.5.17 → python_bsblan-0.5.18}/src/bsblan/bsblan.py +5 -5
- {python_bsblan-0.5.17 → python_bsblan-0.5.18}/README.md +0 -0
- {python_bsblan-0.5.17 → python_bsblan-0.5.18}/src/bsblan/__init__.py +0 -0
- {python_bsblan-0.5.17 → python_bsblan-0.5.18}/src/bsblan/constants.py +0 -0
- {python_bsblan-0.5.17 → python_bsblan-0.5.18}/src/bsblan/exceptions.py +0 -0
- {python_bsblan-0.5.17 → python_bsblan-0.5.18}/src/bsblan/models.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "python-bsblan"
|
|
3
|
-
version = "0.5.
|
|
3
|
+
version = "0.5.18"
|
|
4
4
|
description = "Asynchronous Python client for BSBLAN"
|
|
5
5
|
authors = ["Willem-Jan van Rootselaar <liudgervr@gmail.com>"]
|
|
6
6
|
maintainers = ["Willem-Jan van Rootselaar <liudgervr@gmail.com>"]
|
|
@@ -174,7 +174,7 @@ class BSBLAN:
|
|
|
174
174
|
|
|
175
175
|
# set hvac_mode with correct value
|
|
176
176
|
data["hvac_mode"]["value"] = HVAC_MODE_DICT[int(data["hvac_mode"]["value"])]
|
|
177
|
-
return State.
|
|
177
|
+
return State.parse_obj(data)
|
|
178
178
|
|
|
179
179
|
async def sensor(self) -> Sensor:
|
|
180
180
|
"""Get the sensor information from BSBLAN device.
|
|
@@ -192,7 +192,7 @@ class BSBLAN:
|
|
|
192
192
|
# retrieve sensor params so we can build the data structure
|
|
193
193
|
data = await self._request(params={"Parameter": f"{self._sensor_list}"})
|
|
194
194
|
data = dict(zip(self._sensor_params, list(data.values()), strict=True))
|
|
195
|
-
return Sensor.
|
|
195
|
+
return Sensor.parse_obj(data)
|
|
196
196
|
|
|
197
197
|
async def static_values(self) -> StaticState:
|
|
198
198
|
"""Get the static information from BSBLAN device.
|
|
@@ -212,7 +212,7 @@ class BSBLAN:
|
|
|
212
212
|
data = dict(zip(self._static_params, list(data.values()), strict=True))
|
|
213
213
|
self._min_temp = data["min_temp"]["value"]
|
|
214
214
|
self._max_temp = data["max_temp"]["value"]
|
|
215
|
-
return StaticState.
|
|
215
|
+
return StaticState.parse_obj(data)
|
|
216
216
|
|
|
217
217
|
async def _get_dict_version(self) -> dict[Any, Any]:
|
|
218
218
|
"""Get the version from device.
|
|
@@ -251,7 +251,7 @@ class BSBLAN:
|
|
|
251
251
|
|
|
252
252
|
"""
|
|
253
253
|
device_info = await self._request(base_path="/JI")
|
|
254
|
-
return Device.
|
|
254
|
+
return Device.parse_obj(device_info)
|
|
255
255
|
|
|
256
256
|
async def info(self) -> Info:
|
|
257
257
|
"""Get information about the current heating system config.
|
|
@@ -268,7 +268,7 @@ class BSBLAN:
|
|
|
268
268
|
|
|
269
269
|
data = await self._request(params={"Parameter": f"{self._info}"})
|
|
270
270
|
data = dict(zip(self._device_params, list(data.values()), strict=True))
|
|
271
|
-
return Info.
|
|
271
|
+
return Info.parse_obj(data)
|
|
272
272
|
|
|
273
273
|
async def _get_parameters(self, params: dict[Any, Any]) -> dict[Any, Any]:
|
|
274
274
|
"""Get the parameters info from BSBLAN device.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|