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.
- {python_bsblan-1.2.0 → python_bsblan-1.2.1}/PKG-INFO +1 -1
- {python_bsblan-1.2.0 → python_bsblan-1.2.1}/pyproject.toml +1 -1
- {python_bsblan-1.2.0 → python_bsblan-1.2.1}/src/bsblan/bsblan.py +8 -4
- {python_bsblan-1.2.0 → python_bsblan-1.2.1}/README.md +0 -0
- {python_bsblan-1.2.0 → python_bsblan-1.2.1}/src/bsblan/__init__.py +0 -0
- {python_bsblan-1.2.0 → python_bsblan-1.2.1}/src/bsblan/constants.py +0 -0
- {python_bsblan-1.2.0 → python_bsblan-1.2.1}/src/bsblan/exceptions.py +0 -0
- {python_bsblan-1.2.0 → python_bsblan-1.2.1}/src/bsblan/models.py +0 -0
- {python_bsblan-1.2.0 → python_bsblan-1.2.1}/src/bsblan/utility.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "python-bsblan"
|
|
3
|
-
version = "1.2.
|
|
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
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|