mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix implicit-return in netatmo tests (#122789)
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user