Fix implicit-return in netatmo tests (#122789)
This commit is contained in:
parent
1958a149c3
commit
197ac8b950
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue