aioccl 2025.6.7__tar.gz → 2025.6.8__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.7
3
+ Version: 2025.6.8
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
@@ -87,7 +87,9 @@ class CCLDevice:
87
87
  @property
88
88
  def get_sensors(self) -> dict[str, CCLSensor]:
89
89
  """Get all types of sensor data under this device."""
90
- if len(self._sensors) == 0:
90
+ if self._info["last_update_time"] is None:
91
+ raise CCLDataUpdateException("Device is offline or not ready")
92
+ if len(self._sensors) == 0 or time.monotonic() - self._info["last_update_time"] > 600:
91
93
  raise CCLDataUpdateException("Device is offline or not ready")
92
94
  return self._sensors
93
95
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aioccl
3
- Version: 2025.6.7
3
+ Version: 2025.6.8
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.7"
6
+ VERSION = "2025.6.8"
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