aioccl 2024.9__py3-none-any.whl → 2024.9.1__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/sensor.py +2 -2
- {aioccl-2024.9.dist-info → aioccl-2024.9.1.dist-info}/METADATA +1 -1
- aioccl-2024.9.1.dist-info/RECORD +9 -0
- aioccl-2024.9.dist-info/RECORD +0 -9
- {aioccl-2024.9.dist-info → aioccl-2024.9.1.dist-info}/LICENSE +0 -0
- {aioccl-2024.9.dist-info → aioccl-2024.9.1.dist-info}/WHEEL +0 -0
- {aioccl-2024.9.dist-info → aioccl-2024.9.1.dist-info}/top_level.txt +0 -0
aioccl/sensor.py
CHANGED
@@ -37,8 +37,8 @@ class CCLSensor:
|
|
37
37
|
|
38
38
|
@property
|
39
39
|
def value(self) -> None | str | int | float:
|
40
|
-
if self.sensor_type in CCL_SENSOR_VALUES:
|
41
|
-
return CCL_SENSOR_VALUES
|
40
|
+
if self.sensor_type.name in CCL_SENSOR_VALUES:
|
41
|
+
return CCL_SENSOR_VALUES[self.sensor_type.name].get(self._value)
|
42
42
|
elif self.sensor_type == CCLSensorTypes.BATTERY_BINARY:
|
43
43
|
return self._value - 1
|
44
44
|
elif self.sensor_type in CCL_LEVEL_SENSORS:
|
@@ -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=ff8KKuUKMm0puH-ZC-E6f0xBgNAPssh1KVrTSBpJgiQ,14273
|
4
|
+
aioccl/server.py,sha256=-ZDii20CLqj4_jqVVqRMlnvg-CCtJiZjuMMDamem0DE,3717
|
5
|
+
aioccl-2024.9.1.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
+
aioccl-2024.9.1.dist-info/METADATA,sha256=tbMk1LfDXALMQWQCAZavWGEaDfZfY8QYhWZHVmBDrWY,769
|
7
|
+
aioccl-2024.9.1.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
|
8
|
+
aioccl-2024.9.1.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
+
aioccl-2024.9.1.dist-info/RECORD,,
|
aioccl-2024.9.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
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=mMQUlG_MyIu_XKfAAnaGLbPry9LeE7Rh89TyVptma_w,14267
|
4
|
-
aioccl/server.py,sha256=-ZDii20CLqj4_jqVVqRMlnvg-CCtJiZjuMMDamem0DE,3717
|
5
|
-
aioccl-2024.9.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
-
aioccl-2024.9.dist-info/METADATA,sha256=GQjtb0FFNGLLgkIEfgaEA3By6SvGnzog23-Ae1jXIfU,767
|
7
|
-
aioccl-2024.9.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
|
8
|
-
aioccl-2024.9.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
-
aioccl-2024.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|