We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03b0eaa commit eae7803Copy full SHA for eae7803
1 file changed
roborock/version_1_apis/roborock_client_v1.py
@@ -107,9 +107,9 @@ async def _async_value(self):
107
raise err
108
return self._value
109
110
- async def async_value(self):
+ async def async_value(self, force: bool = False):
111
async with self._mutex:
112
- if self._value is None:
+ if self._value is None or force:
113
return await self.task.reset()
114
115
@@ -175,7 +175,7 @@ def status_type(self) -> type[Status]:
175
return self._status_type
176
177
async def get_status(self) -> Status:
178
- data = self._status_type.from_dict(await self.cache[CacheableAttribute.status].async_value())
+ data = self._status_type.from_dict(await self.cache[CacheableAttribute.status].async_value(force=True))
179
if data is None:
180
return self._status_type()
181
return data
0 commit comments