Update legacy_api.py test_sangaboard and test_server_cli so tests pass for labthings-fastapi 0.0.12

This commit is contained in:
Julian Stirling 2025-12-14 20:53:33 +00:00
parent 70fc3516e6
commit dec90f5b6b
3 changed files with 7 additions and 5 deletions

View file

@ -38,7 +38,7 @@ def add_v2_endpoints(thing_server: lt.ThingServer) -> None:
@app.head("/api/v2/streams/snapshot")
async def thumbnail() -> JPEGResponse:
"""Return a low-resolution snapshot, for compatibility with OF connect."""
blob = await thing_server.things["/camera/"].lores_mjpeg_stream.grab_frame()
blob = await thing_server.things["camera"].lores_mjpeg_stream.grab_frame()
return JPEGResponse(blob)
@app.get("/api/v2/instrument/settings/name")