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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-bsblan
3
- Version: 0.5.17
3
+ Version: 0.5.18
4
4
  Summary: Asynchronous Python client for BSBLAN
5
5
  Home-page: https://github.com/liudger/python-bsblan
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-bsblan"
3
- version = "0.5.17"
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.model_validate(data)
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.model_validate(data)
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.model_validate(data)
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.model_validate(device_info)
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.model_validate(data)
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