We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 199f84c commit ad83784Copy full SHA for ad83784
custom_components/smartthinq_sensors/wideq/device.py
@@ -776,7 +776,10 @@ async def _device_poll(
776
return self._model_info.decode_snapshot(snapshot, snapshot_key)
777
778
# ThinQ V1 - Monitor data must be polled """
779
- if not (data := self._load_emul_v1_payload()):
+ data = None
780
+ if self._client.emulation:
781
+ data = await asyncio.to_thread(self._load_emul_v1_payload)
782
+ if not data:
783
data = await self._mon.refresh()
784
if not data:
785
return None
0 commit comments