aioccl 2024.7.7__py3-none-any.whl → 2024.8__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 CHANGED
@@ -33,7 +33,7 @@ class CCLSensor:
33
33
  @property
34
34
  def value(self):
35
35
  if self.sensor_type == CCLSensorTypes.CH_SENSOR_TYPE:
36
- return CCL_CH_SENSOR_TYPES[self.sensor_type]
36
+ return CCL_CH_SENSOR_TYPES.get(self._value)
37
37
  return self._value
38
38
 
39
39
  @value.setter
@@ -60,7 +60,11 @@ class CCLSensorTypes(enum.Enum):
60
60
  CONNECTION = 11
61
61
  CH_SENSOR_TYPE = 12
62
62
 
63
- CCL_CH_SENSOR_TYPES: list[str] = [None, None, 'Thermo-Hygro', 'Pool', 'Soil']
63
+ CCL_CH_SENSOR_TYPES: dict[int, str] = {
64
+ 2: 'Thermo-Hygro',
65
+ 3: 'Pool',
66
+ 4: 'Soil',
67
+ }
64
68
 
65
69
  CCL_SENSORS: dict[str, CCLSensorPreset] = {
66
70
  'rbar': CCLSensorPreset('Relative Pressure', CCLSensorTypes.PRESSURE),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aioccl
3
- Version: 2024.7.7
3
+ Version: 2024.8
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
@@ -0,0 +1,9 @@
1
+ aioccl/__init__.py,sha256=iL1OC2F_rf3qkswi-bO8Y_uj2-lf284LCnyxwqdLUU8,137
2
+ aioccl/device.py,sha256=QKlVZ-Zu7eXOENxdUhOFMW9FojzcELf4-zCNQR8kLMw,5029
3
+ aioccl/sensor.py,sha256=TcOfs0brDu6bl3vQUIw04t336wIg4dpmRHivji0BbsA,4260
4
+ aioccl/server.py,sha256=JPwhjp7pzQnm7J2RcHh3GiaqBc-jkRH2mQA4KHJzm28,3669
5
+ aioccl-2024.8.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
6
+ aioccl-2024.8.dist-info/METADATA,sha256=OmqKaaAArpB5EL0veKG_ak6Job4dXGMLvp_UJCxEf2M,767
7
+ aioccl-2024.8.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
8
+ aioccl-2024.8.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
9
+ aioccl-2024.8.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- aioccl/__init__.py,sha256=iL1OC2F_rf3qkswi-bO8Y_uj2-lf284LCnyxwqdLUU8,137
2
- aioccl/device.py,sha256=QKlVZ-Zu7eXOENxdUhOFMW9FojzcELf4-zCNQR8kLMw,5029
3
- aioccl/sensor.py,sha256=wDCfGeQnk1FSH7gsM-85vU1-O1j0WDh3hScHRN1agM8,4244
4
- aioccl/server.py,sha256=JPwhjp7pzQnm7J2RcHh3GiaqBc-jkRH2mQA4KHJzm28,3669
5
- aioccl-2024.7.7.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
6
- aioccl-2024.7.7.dist-info/METADATA,sha256=8S_Sn6ZZQgv_atSOHVOAzwlCXst0pbpef5BuKCFdCsw,769
7
- aioccl-2024.7.7.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
8
- aioccl-2024.7.7.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
9
- aioccl-2024.7.7.dist-info/RECORD,,