aioccl 2024.7.2__py3-none-any.whl → 2024.7.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 +7 -1
- {aioccl-2024.7.2.dist-info → aioccl-2024.7.4.dist-info}/METADATA +1 -1
- aioccl-2024.7.4.dist-info/RECORD +9 -0
- aioccl-2024.7.2.dist-info/RECORD +0 -9
- {aioccl-2024.7.2.dist-info → aioccl-2024.7.4.dist-info}/LICENSE +0 -0
- {aioccl-2024.7.2.dist-info → aioccl-2024.7.4.dist-info}/WHEEL +0 -0
- {aioccl-2024.7.2.dist-info → aioccl-2024.7.4.dist-info}/top_level.txt +0 -0
aioccl/device.py
CHANGED
@@ -23,7 +23,7 @@ class CCLDevice:
|
|
23
23
|
self._version: str | None
|
24
24
|
self._binary_sensors: dict[str, CCLSensor] | None = {}
|
25
25
|
self._sensors: dict[str, CCLSensor] | None = {}
|
26
|
-
self.
|
26
|
+
self._last_updated_time: float | None
|
27
27
|
|
28
28
|
self._new_sensors: list[CCLSensor] | None = []
|
29
29
|
|
aioccl/sensor.py
CHANGED
@@ -35,6 +35,10 @@ class CCLSensor:
|
|
35
35
|
if self.sensor_type == CCLSensorTypes.CH_SENSOR_TYPE:
|
36
36
|
return CCL_CH_SENSOR_TYPES[self.sensor_type]
|
37
37
|
return self._value
|
38
|
+
|
39
|
+
@value.setter
|
40
|
+
def value(self, new_value):
|
41
|
+
self._value = new_value
|
38
42
|
|
39
43
|
@dataclass
|
40
44
|
class CCLSensorPreset:
|
@@ -59,9 +63,11 @@ class CCLSensorTypes(enum.Enum):
|
|
59
63
|
CCL_CH_SENSOR_TYPES: list[str] = [None, None, 'Thermo-Hygro', 'Pool', 'Soil']
|
60
64
|
|
61
65
|
CCL_SENSORS: dict[str, CCLSensorPreset] = {
|
62
|
-
'rbar': CCLSensorPreset('
|
66
|
+
'rbar': CCLSensorPreset('Relative Pressure', CCLSensorTypes.PRESSURE),
|
67
|
+
'abar': CCLSensorPreset('Absolute Pressure', CCLSensorTypes.PRESSURE),
|
63
68
|
'intem': CCLSensorPreset('Indoor Temperature', CCLSensorTypes.TEMPERATURE),
|
64
69
|
'inhum': CCLSensorPreset('Indoor Humidity', CCLSensorTypes.HUMIDITY),
|
70
|
+
'inbat': CCLSensorPreset('Console Battery', CCLSensorTypes.BATTERY_BINARY, True),
|
65
71
|
't1tem': CCLSensorPreset('Outdoor Temperature', CCLSensorTypes.TEMPERATURE),
|
66
72
|
't1hum': CCLSensorPreset('Outdoor Humidity', CCLSensorTypes.HUMIDITY),
|
67
73
|
't1wdir': CCLSensorPreset('Wind Direction', CCLSensorTypes.WIND_DIRECITON),
|
@@ -0,0 +1,9 @@
|
|
1
|
+
aioccl/__init__.py,sha256=iL1OC2F_rf3qkswi-bO8Y_uj2-lf284LCnyxwqdLUU8,137
|
2
|
+
aioccl/device.py,sha256=jlldBI1oaK4KkHqmYhUcLfkreReS1C7BjtxwBtQuLBU,4381
|
3
|
+
aioccl/sensor.py,sha256=wDCfGeQnk1FSH7gsM-85vU1-O1j0WDh3hScHRN1agM8,4244
|
4
|
+
aioccl/server.py,sha256=JPwhjp7pzQnm7J2RcHh3GiaqBc-jkRH2mQA4KHJzm28,3669
|
5
|
+
aioccl-2024.7.4.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
+
aioccl-2024.7.4.dist-info/METADATA,sha256=PLAnnuHtR15l8zqpaUE_Hn_YuLgvEI0Lw1QgAIXc7j4,769
|
7
|
+
aioccl-2024.7.4.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
8
|
+
aioccl-2024.7.4.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
+
aioccl-2024.7.4.dist-info/RECORD,,
|
aioccl-2024.7.2.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
aioccl/__init__.py,sha256=iL1OC2F_rf3qkswi-bO8Y_uj2-lf284LCnyxwqdLUU8,137
|
2
|
-
aioccl/device.py,sha256=RzneGYQujYdQGRa7G382hIea1Q95V-LJ_gi5x7pmeSk,4380
|
3
|
-
aioccl/sensor.py,sha256=jonbAEgs1QG6akjNBv_2Rd1DGscd3rV5yVs1zFjR5GY,3991
|
4
|
-
aioccl/server.py,sha256=JPwhjp7pzQnm7J2RcHh3GiaqBc-jkRH2mQA4KHJzm28,3669
|
5
|
-
aioccl-2024.7.2.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
-
aioccl-2024.7.2.dist-info/METADATA,sha256=o3zif4UU7Bu7JCu_74WkfVPrhZGGPIzh_xJOToBYXbc,769
|
7
|
-
aioccl-2024.7.2.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
8
|
-
aioccl-2024.7.2.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
-
aioccl-2024.7.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|