capture_image in stub raises NotImplemented

This commit is contained in:
jaknapper 2025-05-20 14:40:13 +01:00 committed by Julian Stirling
parent 2f9e37a02f
commit 7052917ff9

View file

@ -201,7 +201,7 @@ class CameraStub(BaseCamera):
@thing_action
def capture_image(self, stream_name, wait):
"""Capture a PIL image from stream stream_name with timeout wait"""
raise Exception
raise NotImplementedError("Cameras must not inherit from CameraStub")
CameraDependency = direct_thing_client_dependency(CameraStub, "/camera/")