Fix implicit-return in netatmo tests (#122789)

This commit is contained in:
epenet 2024-07-29 21:53:22 +02:00 committed by GitHub
parent 1958a149c3
commit 197ac8b950
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,7 +87,7 @@ async def fake_post_request(*args: Any, **kwargs: Any):
) )
async def fake_get_image(*args: Any, **kwargs: Any) -> bytes | str: async def fake_get_image(*args: Any, **kwargs: Any) -> bytes | str | None:
"""Return fake data.""" """Return fake data."""
if "endpoint" not in kwargs: if "endpoint" not in kwargs:
return "{}" return "{}"
@ -96,6 +96,7 @@ async def fake_get_image(*args: Any, **kwargs: Any) -> bytes | str:
if endpoint in "snapshot_720.jpg": if endpoint in "snapshot_720.jpg":
return b"test stream image bytes" return b"test stream image bytes"
return None
async def simulate_webhook(hass: HomeAssistant, webhook_id: str, response) -> None: async def simulate_webhook(hass: HomeAssistant, webhook_id: str, response) -> None: