aioccl 2024.9.4__py3-none-any.whl → 2024.9.5__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 +6 -6
- {aioccl-2024.9.4.dist-info → aioccl-2024.9.5.dist-info}/METADATA +1 -1
- aioccl-2024.9.5.dist-info/RECORD +9 -0
- aioccl-2024.9.4.dist-info/RECORD +0 -9
- {aioccl-2024.9.4.dist-info → aioccl-2024.9.5.dist-info}/LICENSE +0 -0
- {aioccl-2024.9.4.dist-info → aioccl-2024.9.5.dist-info}/WHEEL +0 -0
- {aioccl-2024.9.4.dist-info → aioccl-2024.9.5.dist-info}/top_level.txt +0 -0
aioccl/sensor.py
CHANGED
@@ -40,7 +40,7 @@ class CCLSensor:
|
|
40
40
|
if self.sensor_type.name in CCL_SENSOR_VALUES:
|
41
41
|
return CCL_SENSOR_VALUES[self.sensor_type.name].get(self._value)
|
42
42
|
elif self.sensor_type in CCL_LEVEL_SENSORS:
|
43
|
-
return 'Lv ' + self._value
|
43
|
+
return 'Lv ' + str(self._value)
|
44
44
|
elif self.sensor_type == CCLSensorTypes.BATTERY_BINARY:
|
45
45
|
try:
|
46
46
|
return int(self._value) - 1
|
@@ -93,13 +93,13 @@ class CCLDeviceCompartment(enum.Enum):
|
|
93
93
|
|
94
94
|
CCL_SENSOR_VALUES: dict[str, dict[str, str]] = {
|
95
95
|
'CH_SENSOR_TYPE': {
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
2: 'Thermo-Hygro',
|
97
|
+
3: 'Pool',
|
98
|
+
4: 'Soil',
|
99
99
|
},
|
100
100
|
'LEAKAGE': {
|
101
|
-
|
102
|
-
|
101
|
+
0: 'No Leak',
|
102
|
+
1: 'Leaking',
|
103
103
|
}
|
104
104
|
}
|
105
105
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
aioccl/__init__.py,sha256=iL1OC2F_rf3qkswi-bO8Y_uj2-lf284LCnyxwqdLUU8,137
|
2
|
+
aioccl/device.py,sha256=ALvK7qvGlG0duS1axPz7uQj85vHW1iyzezvX2bD2Zuc,4994
|
3
|
+
aioccl/sensor.py,sha256=euef6f3_WV2LuE_cocV5PWR1UoJUeXjqbe8OnlioSDU,14641
|
4
|
+
aioccl/server.py,sha256=-ZDii20CLqj4_jqVVqRMlnvg-CCtJiZjuMMDamem0DE,3717
|
5
|
+
aioccl-2024.9.5.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
+
aioccl-2024.9.5.dist-info/METADATA,sha256=aEYNvvilsQ6sATtWSuSEDgVps5VOu6i9BIrZqgAirGw,769
|
7
|
+
aioccl-2024.9.5.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
8
|
+
aioccl-2024.9.5.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
+
aioccl-2024.9.5.dist-info/RECORD,,
|
aioccl-2024.9.4.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
aioccl/__init__.py,sha256=iL1OC2F_rf3qkswi-bO8Y_uj2-lf284LCnyxwqdLUU8,137
|
2
|
-
aioccl/device.py,sha256=ALvK7qvGlG0duS1axPz7uQj85vHW1iyzezvX2bD2Zuc,4994
|
3
|
-
aioccl/sensor.py,sha256=l0eCWCSW4dpSRGZAGieCzySsCy7NuEdY1hc5ZTyp5Lo,14646
|
4
|
-
aioccl/server.py,sha256=-ZDii20CLqj4_jqVVqRMlnvg-CCtJiZjuMMDamem0DE,3717
|
5
|
-
aioccl-2024.9.4.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
-
aioccl-2024.9.4.dist-info/METADATA,sha256=fuJvk253sLgspPwDQWYtKa3wBzE2mJ1vF15KefQ5AjA,769
|
7
|
-
aioccl-2024.9.4.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
8
|
-
aioccl-2024.9.4.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
-
aioccl-2024.9.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|