aioccl 2024.8.2__tar.gz → 2024.8.4__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: aioccl
3
- Version: 2024.8.2
3
+ Version: 2024.8.4
4
4
  Summary: A Python library for CCL API server
5
5
  Home-page: https://github.com/fkiscd/aioccl
6
6
  Download-URL: https://github.com/fkiscd/aioccl
@@ -72,7 +72,7 @@ class CCLDevice:
72
72
  self._serial_no = info.get('serial_no')
73
73
  self._mac_address = info.get('mac_address')
74
74
  self._model = info.get('model')
75
- self._version = info.get('version')
75
+ self._fw_ver = info.get('fw_ver')
76
76
 
77
77
  def update_sensors(self, sensors: dict[str, None | str | int | float]) -> None:
78
78
  """Add or update all sensor values."""
@@ -27,8 +27,9 @@ class CCLSensor:
27
27
  return CCL_SENSORS[self._key].sensor_type
28
28
 
29
29
  @property
30
- def compartment(self) -> str:
31
- return CCL_SENSORS[self._key].compartment.value
30
+ def compartment(self) -> None | str:
31
+ if CCL_SENSORS[self._key].compartment is not None:
32
+ return CCL_SENSORS[self._key].compartment.value
32
33
 
33
34
  @property
34
35
  def binary(self) -> bool:
@@ -50,7 +51,7 @@ class CCLSensor:
50
51
  class CCLSensorPreset:
51
52
  name: str
52
53
  sensor_type: str
53
- compartment: str = None
54
+ compartment: None | CCLDeviceCompartment = None
54
55
  binary: bool = False
55
56
 
56
57
  class CCLSensorTypes(enum.Enum):
@@ -81,7 +81,7 @@ class CCLServer:
81
81
  finally:
82
82
  return web.Response(status=_status, text=_text)
83
83
 
84
- #app = web.Application()
84
+ app = web.Application()
85
85
 
86
86
  cors = aiohttp_cors.setup(app)
87
87
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aioccl
3
- Version: 2024.8.2
3
+ Version: 2024.8.4
4
4
  Summary: A Python library for CCL API server
5
5
  Home-page: https://github.com/fkiscd/aioccl
6
6
  Download-URL: https://github.com/fkiscd/aioccl
@@ -1,7 +1,7 @@
1
1
  from pathlib import Path
2
2
  from setuptools import find_packages, setup
3
3
 
4
- VERSION = "2024.8.2"
4
+ VERSION = "2024.8.4"
5
5
 
6
6
  ROOT_DIR = Path(__file__).parent.resolve()
7
7
 
File without changes
File without changes
File without changes
File without changes