python-bsblan 1.2.0__tar.gz → 1.2.1__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: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Asynchronous Python client for BSBLAN API
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 = "1.2.0"
3
+ version = "1.2.1"
4
4
  description = "Asynchronous Python client for BSBLAN API"
5
5
  authors = ["Willem-Jan van Rootselaar <liudgervr@gmail.com>"]
6
6
  maintainers = ["Willem-Jan van Rootselaar <liudgervr@gmail.com>"]
@@ -222,16 +222,20 @@ class BSBLAN:
222
222
  self._temperature_unit = "°C"
223
223
  else:
224
224
  self._temperature_unit = "°F"
225
+ logger.debug("Temperature unit: %s", self._temperature_unit)
225
226
 
226
- async def get_temperature_unit(self) -> str:
227
+ @property
228
+ def get_temperature_unit(self) -> str:
227
229
  """Get the unit of temperature.
228
230
 
229
231
  Returns:
230
- str: The unit of temperature.
232
+ str: The unit of temperature (°C or °F).
233
+
234
+ Note:
235
+ This property assumes the client has been initialized. If accessed before
236
+ initialization, it will return the default unit (°C).
231
237
 
232
238
  """
233
- if self._temperature_unit is None:
234
- await self._initialize_temperature_range()
235
239
  return self._temperature_unit
236
240
 
237
241
  async def _initialize_api_data(self) -> APIConfig:
File without changes