aioccl 2024.8.3__py3-none-any.whl → 2024.8.4__py3-none-any.whl
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.
- aioccl/device.py +1 -1
- aioccl/sensor.py +4 -3
- {aioccl-2024.8.3.dist-info → aioccl-2024.8.4.dist-info}/METADATA +1 -1
- aioccl-2024.8.4.dist-info/RECORD +9 -0
- aioccl-2024.8.3.dist-info/RECORD +0 -9
- {aioccl-2024.8.3.dist-info → aioccl-2024.8.4.dist-info}/LICENSE +0 -0
- {aioccl-2024.8.3.dist-info → aioccl-2024.8.4.dist-info}/WHEEL +0 -0
- {aioccl-2024.8.3.dist-info → aioccl-2024.8.4.dist-info}/top_level.txt +0 -0
aioccl/device.py
CHANGED
@@ -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.
|
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."""
|
aioccl/sensor.py
CHANGED
@@ -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
|
-
|
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:
|
54
|
+
compartment: None | CCLDeviceCompartment = None
|
54
55
|
binary: bool = False
|
55
56
|
|
56
57
|
class CCLSensorTypes(enum.Enum):
|
@@ -0,0 +1,9 @@
|
|
1
|
+
aioccl/__init__.py,sha256=iL1OC2F_rf3qkswi-bO8Y_uj2-lf284LCnyxwqdLUU8,137
|
2
|
+
aioccl/device.py,sha256=Cr33h7HrM2YS-u9BxoJASd2X5nBba37_fC85XunhVcs,5132
|
3
|
+
aioccl/sensor.py,sha256=79QFMyGv4y6uCmrYoAJHaQ5dXEaM6yfBxDaDUBXdLwM,10390
|
4
|
+
aioccl/server.py,sha256=-ZDii20CLqj4_jqVVqRMlnvg-CCtJiZjuMMDamem0DE,3717
|
5
|
+
aioccl-2024.8.4.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
+
aioccl-2024.8.4.dist-info/METADATA,sha256=XH835fOcwFxpZ5cFANOd_ZF0zKIClCTTJDIag56tnWk,769
|
7
|
+
aioccl-2024.8.4.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
8
|
+
aioccl-2024.8.4.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
+
aioccl-2024.8.4.dist-info/RECORD,,
|
aioccl-2024.8.3.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
aioccl/__init__.py,sha256=iL1OC2F_rf3qkswi-bO8Y_uj2-lf284LCnyxwqdLUU8,137
|
2
|
-
aioccl/device.py,sha256=OIUzb4wpADkbAekpWKYXCVoigNlLA-3W8aRnxHAN9D8,5134
|
3
|
-
aioccl/sensor.py,sha256=acEWOlQVkcxBIas7LQkbVd-VpdH2wohOo-lS5gTpPk0,10296
|
4
|
-
aioccl/server.py,sha256=-ZDii20CLqj4_jqVVqRMlnvg-CCtJiZjuMMDamem0DE,3717
|
5
|
-
aioccl-2024.8.3.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
-
aioccl-2024.8.3.dist-info/METADATA,sha256=Sjg1FWskDNmi2B8198g4FQYb5VZ681A7fe93q3g2zwg,769
|
7
|
-
aioccl-2024.8.3.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
8
|
-
aioccl-2024.8.3.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
-
aioccl-2024.8.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|