python-hotspring 2.0.0__tar.gz → 2.0.1__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.
- {python_hotspring-2.0.0 → python_hotspring-2.0.1}/PKG-INFO +1 -1
- {python_hotspring-2.0.0 → python_hotspring-2.0.1}/pyproject.toml +1 -1
- {python_hotspring-2.0.0 → python_hotspring-2.0.1}/src/hotspring/hotspring.py +12 -5
- {python_hotspring-2.0.0 → python_hotspring-2.0.1}/LICENSE +0 -0
- {python_hotspring-2.0.0 → python_hotspring-2.0.1}/README.md +0 -0
- {python_hotspring-2.0.0 → python_hotspring-2.0.1}/src/hotspring/__init__.py +0 -0
- {python_hotspring-2.0.0 → python_hotspring-2.0.1}/src/hotspring/const.py +0 -0
- {python_hotspring-2.0.0 → python_hotspring-2.0.1}/src/hotspring/exceptions.py +0 -0
- {python_hotspring-2.0.0 → python_hotspring-2.0.1}/src/hotspring/models.py +0 -0
- {python_hotspring-2.0.0 → python_hotspring-2.0.1}/src/hotspring/py.typed +0 -0
|
@@ -166,8 +166,9 @@ class HotSpring:
|
|
|
166
166
|
the main /status endpoint concurrently with /startup, /spaConnectStatus,
|
|
167
167
|
and /spamodel.
|
|
168
168
|
|
|
169
|
-
On subsequent routine polling cycles, it
|
|
170
|
-
|
|
169
|
+
On subsequent routine polling cycles, it queries /status and /spaConnectStatus
|
|
170
|
+
concurrently, avoiding redundant radio (LoRA) queries for static identity data
|
|
171
|
+
while keeping telemetry and connection status fresh.
|
|
171
172
|
|
|
172
173
|
Args:
|
|
173
174
|
----
|
|
@@ -208,12 +209,18 @@ class HotSpring:
|
|
|
208
209
|
self._identity_loaded = True
|
|
209
210
|
return self.spa
|
|
210
211
|
|
|
211
|
-
|
|
212
|
+
status_res, connect_res = await asyncio.gather(
|
|
213
|
+
self.request("/status"),
|
|
214
|
+
self._safe_request("/spaConnectStatus"),
|
|
215
|
+
)
|
|
212
216
|
|
|
213
217
|
if self.spa is None: # Safety guard; spa is always set after cold sync
|
|
214
|
-
self.spa = Spa(
|
|
218
|
+
self.spa = Spa(status_res)
|
|
215
219
|
else:
|
|
216
|
-
self.spa.update_from_dict(
|
|
220
|
+
self.spa.update_from_dict(status_res)
|
|
221
|
+
|
|
222
|
+
if connect_res:
|
|
223
|
+
self.spa.update_connection_status(connect_res)
|
|
217
224
|
|
|
218
225
|
return self.spa
|
|
219
226
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|