aioccl 2025.6.6__tar.gz → 2025.6.7__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aioccl
3
- Version: 2025.6.6
3
+ Version: 2025.6.7
4
4
  Summary: A Python library for CCL API server
5
5
  Home-page: https://github.com/CCL-Electronics-Ltd/aioccl
6
6
  Download-URL: https://github.com/CCL-Electronics-Ltd/aioccl
@@ -98,15 +98,8 @@ class CCLDevice:
98
98
  self._info[key] = str(value)
99
99
  self._info["last_update_time"] = time.monotonic()
100
100
 
101
- def process_data(self, data: dict[str, None | str | int | float]) -> None:
102
- """Add or update all sensor values."""
103
- for key, value in data.items():
104
- if key not in self._sensors:
105
- self._sensors[key] = CCLSensor(key)
106
- self._new_sensors.append(self._sensors[key])
107
- self._sensors[key].last_update_time = time.monotonic()
108
- self._sensors[key].value = value
109
-
101
+ def push_updates(self) -> None:
102
+ """Push sensor updates."""
110
103
  add_count = self._publish_new_sensors()
111
104
  if add_count > 0:
112
105
  _LOGGER.debug(
@@ -122,6 +115,16 @@ class CCLDevice:
122
115
  self.device_id,
123
116
  self.last_update_time,
124
117
  )
118
+
119
+ def process_data(self, data: dict[str, None | str | int | float]) -> None:
120
+ """Add or update all sensor values."""
121
+ for key, value in data.items():
122
+ if key not in self._sensors:
123
+ self._sensors[key] = CCLSensor(key)
124
+ self._new_sensors.append(self._sensors[key])
125
+ self._sensors[key].last_update_time = time.monotonic()
126
+ self._sensors[key].value = value
127
+ self.push_updates()
125
128
 
126
129
  def set_update_callback(self, callback: Callable[[], None]) -> None:
127
130
  """Set the callback function to update sensor data."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aioccl
3
- Version: 2025.6.6
3
+ Version: 2025.6.7
4
4
  Summary: A Python library for CCL API server
5
5
  Home-page: https://github.com/CCL-Electronics-Ltd/aioccl
6
6
  Download-URL: https://github.com/CCL-Electronics-Ltd/aioccl
@@ -3,7 +3,7 @@
3
3
  from pathlib import Path
4
4
  from setuptools import find_packages, setup
5
5
 
6
- VERSION = "2025.6.6"
6
+ VERSION = "2025.6.7"
7
7
 
8
8
  ROOT_DIR = Path(__file__).parent.resolve()
9
9
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes