Adjust type hints for unnecessary returns in tests (#121657)

This commit is contained in:
epenet 2024-07-10 09:30:50 +02:00 committed by GitHub
parent d10aa6656b
commit 86f7718c1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 17 additions and 10 deletions

View file

@ -226,7 +226,11 @@ async def test_invalid_service(
) -> None:
"""Test service setup with an invalid service object or platform."""
def get_service(hass, config, discovery_info=None):
def get_service(
hass: HomeAssistant,
config: ConfigType,
discovery_info: DiscoveryInfoType | None = None,
) -> notify.BaseNotificationService | None:
"""Return None for an invalid notify service."""
return None