We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3031dc0 commit 17310e3Copy full SHA for 17310e3
1 file changed
roborock/devices/traits/v1/device_features.py
@@ -27,12 +27,12 @@ async def refresh(self) -> Self:
27
cache_data = await self._cache.get()
28
if cache_data.device_features is not None:
29
self._update_trait_values(cache_data.device_features)
30
- return cache_data.device_features # type: ignore[return-value]
+ return self
31
# Save cached device features
32
device_features = await super().refresh()
33
cache_data.device_features = device_features
34
await self._cache.set(cache_data)
35
- return device_features # type: ignore[return-value]
+ return device_features
36
37
def _parse_response(self, response: common.V1ResponseData) -> DeviceFeatures:
38
"""Parse the response from the device into a MapContentTrait instance."""
0 commit comments