Update camera thing to match upstream

This commit is contained in:
jaknapper 2025-04-28 13:49:37 +01:00
parent 6cf99d5096
commit a4801ad861

View file

@ -44,7 +44,7 @@ class CameraProtocol(Protocol):
def capture_array(
self,
resolution: Literal["lores", "main", "full"] = "main",
stream_name: Literal["main", "lores", "raw"] = "main",
) -> NDArray: ...
def capture_jpeg(
@ -166,7 +166,7 @@ class CameraStub(BaseCamera):
@thing_action
def capture_array(
self,
resolution: Literal["lores", "main", "full"] = "main",
stream_name: Literal["main", "lores", "raw"] = "main",
) -> NDArray:
raise NotImplementedError("Cameras must not inherit from CameraStub")