Update camera thing to match upstream
This commit is contained in:
parent
6cf99d5096
commit
a4801ad861
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue