Fix netgear method return type annotation (#74200)

This commit is contained in:
Marc Mueller 2022-06-30 08:16:05 +02:00 committed by GitHub
parent bef512c425
commit 48c5aab5ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,7 +250,7 @@ class NetgearRouter:
async with self._api_lock:
await self.hass.async_add_executor_job(self._api.reboot)
async def async_check_new_firmware(self) -> None:
async def async_check_new_firmware(self) -> dict[str, Any] | None:
"""Check for new firmware of the router."""
async with self._api_lock:
return await self.hass.async_add_executor_job(self._api.check_new_firmware)