Skip to content

Commit eed8e1a

Browse files
committed
chore: fix typing on refresh
1 parent aaa3739 commit eed8e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roborock/devices/traits/v1/device_features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ async def refresh(self) -> Self:
2727
cache_data = await self._cache.get()
2828
if cache_data.device_features is not None:
2929
self._update_trait_values(cache_data.device_features)
30-
return cache_data.device_features # type: ignore[return-value]
30+
return self
3131
# Save cached device features
3232
device_features = await super().refresh()
3333
cache_data.device_features = device_features
3434
await self._cache.set(cache_data)
35-
return device_features # type: ignore[return-value]
35+
return device_features
3636

3737
def _parse_response(self, response: common.V1ResponseData) -> DeviceFeatures:
3838
"""Parse the response from the device into a MapContentTrait instance."""

0 commit comments

Comments
 (0)