We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6892cd8 commit ed2f44dCopy full SHA for ed2f44d
aioshelly/rpc_device/device.py
@@ -284,7 +284,9 @@ async def poll(self) -> None:
284
results = await self.call_rpc_multiple(calls, DEVICE_POLL_TIMEOUT)
285
if (status := results[0]) is None:
286
raise RpcCallError("empty response to Shelly.GetStatus")
287
- self._status = status
+ if self._status is None:
288
+ raise NotInitialized
289
+ self._status.update(status)
290
if has_dynamic:
291
if (dynamic := results[1]) is None:
292
raise RpcCallError("empty response to Shelly.GetComponents")
0 commit comments