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.
- {aioccl-2025.6.7 → aioccl-2025.6.8}/PKG-INFO +1 -1
- {aioccl-2025.6.7 → aioccl-2025.6.8}/aioccl/device.py +3 -1
- {aioccl-2025.6.7 → aioccl-2025.6.8}/aioccl.egg-info/PKG-INFO +1 -1
- {aioccl-2025.6.7 → aioccl-2025.6.8}/setup.py +1 -1
- {aioccl-2025.6.7 → aioccl-2025.6.8}/LICENSE +0 -0
- {aioccl-2025.6.7 → aioccl-2025.6.8}/README.md +0 -0
- {aioccl-2025.6.7 → aioccl-2025.6.8}/aioccl/__init__.py +0 -0
- {aioccl-2025.6.7 → aioccl-2025.6.8}/aioccl/exception.py +0 -0
- {aioccl-2025.6.7 → aioccl-2025.6.8}/aioccl/sensor.py +0 -0
- {aioccl-2025.6.7 → aioccl-2025.6.8}/aioccl/server.py +0 -0
- {aioccl-2025.6.7 → aioccl-2025.6.8}/aioccl.egg-info/SOURCES.txt +0 -0
- {aioccl-2025.6.7 → aioccl-2025.6.8}/aioccl.egg-info/dependency_links.txt +0 -0
- {aioccl-2025.6.7 → aioccl-2025.6.8}/aioccl.egg-info/requires.txt +0 -0
- {aioccl-2025.6.7 → aioccl-2025.6.8}/aioccl.egg-info/top_level.txt +0 -0
- {aioccl-2025.6.7 → aioccl-2025.6.8}/setup.cfg +0 -0
@@ -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
|
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
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|