diff --git a/roborock/local_api.py b/roborock/local_api.py index 92e95bccc..7fdc4ac7b 100644 --- a/roborock/local_api.py +++ b/roborock/local_api.py @@ -96,7 +96,7 @@ async def hello(self): except Exception as e: self._logger.error(e) - async def ping(self): + async def ping(self) -> None: request_id = 2 protocol = RoborockMessageProtocol.PING_REQUEST return await self.send_message( diff --git a/roborock/version_1_apis/roborock_client_v1.py b/roborock/version_1_apis/roborock_client_v1.py index da194bc6d..4e8bfda60 100644 --- a/roborock/version_1_apis/roborock_client_v1.py +++ b/roborock/version_1_apis/roborock_client_v1.py @@ -105,7 +105,7 @@ async def async_value(self): def stop(self): self.task.cancel() - async def update_value(self, params): + async def update_value(self, params) -> None: if self.attribute.set_command is None: raise RoborockException(f"{self.attribute.attribute} have no set command") response = await self.api._send_command(self.attribute.set_command, params) @@ -119,7 +119,7 @@ async def add_value(self, params): await self._async_value() return response - async def close_value(self, params=None): + async def close_value(self, params=None) -> None: if self.attribute.close_command is None: raise RoborockException(f"{self.attribute.attribute} have no close command") response = await self.api._send_command(self.attribute.close_command, params) @@ -154,7 +154,7 @@ def release(self): super().release() [item.stop() for item in self.cache.values()] - async def async_release(self): + async def async_release(self) -> None: await super().async_release() [item.stop() for item in self.cache.values()]