Ruff formating
This commit is contained in:
parent
17f3bbe646
commit
f5c1ff2621
4 changed files with 28 additions and 17 deletions
|
|
@ -83,12 +83,13 @@ class CameraProtocol(Protocol):
|
|||
"""Start (or stop and restart) the camera in a configuration for low
|
||||
res streaming and instant high res captures"""
|
||||
...
|
||||
|
||||
|
||||
def start_streaming(self) -> None:
|
||||
"""Start (or stop and restart) the camera in the default streaming
|
||||
configuration which balances stream and capture quality"""
|
||||
...
|
||||
|
||||
|
||||
class BaseCamera(Thing):
|
||||
"""A Thing representing a camera
|
||||
|
||||
|
|
@ -197,12 +198,13 @@ class CameraStub(BaseCamera):
|
|||
"""Start (or stop and restart) the camera in a configuration for low
|
||||
res streaming and instant high res captures"""
|
||||
raise NotImplementedError("Cameras must not inherit from CameraStub")
|
||||
|
||||
|
||||
@thing_action
|
||||
def start_streaming(self) -> None:
|
||||
"""Start (or stop and restart) the camera in the default streaming
|
||||
configuration which balances stream and capture quality"""
|
||||
raise NotImplementedError("Cameras must not inherit from CameraStub")
|
||||
|
||||
|
||||
CameraDependency = direct_thing_client_dependency(CameraStub, "/camera/")
|
||||
RawCameraDependency = raw_thing_dependency(CameraProtocol)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue