Adjust type hints for unnecessary returns (#121650)

This commit is contained in:
epenet 2024-07-10 09:26:29 +02:00 committed by GitHub
parent 5d809f88ba
commit ff59adc661
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ class BroadlinkRMUpdateManager(BroadlinkUpdateManager[blk.rm]):
class BroadlinkSP1UpdateManager(BroadlinkUpdateManager[blk.sp1]):
"""Manages updates for Broadlink SP1 devices."""
async def async_fetch_data(self) -> None:
async def async_fetch_data(self) -> dict[str, Any] | None:
"""Fetch data from the device."""
return None

View File

@ -321,7 +321,7 @@ class SamsungTVLegacyBridge(SamsungTVBridge):
LOGGER.debug("Failing config: %s, error: %s", config, err)
return RESULT_CANNOT_CONNECT
async def async_device_info(self) -> None:
async def async_device_info(self) -> dict[str, Any] | None:
"""Try to gather infos of this device."""
return None