Fix implicit-return in netatmo tests (#122789)

pull/122804/head
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
1 changed files with 2 additions and 1 deletions

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