Fixed read and apply config dicts
This commit is contained in:
parent
fdbba08b66
commit
f31c28fe52
6 changed files with 42 additions and 25 deletions
|
|
@ -144,7 +144,7 @@ class BaseCamera(metaclass=ABCMeta):
|
|||
pass
|
||||
|
||||
@abstractmethod
|
||||
def read_config(self):
|
||||
def read_config(self) -> dict:
|
||||
"""Return the current settings as a dictionary"""
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class StreamingCamera(BaseCamera):
|
|||
self.camera.close()
|
||||
|
||||
# HANDLE SETTINGS
|
||||
def read_config(self):
|
||||
def read_config(self) -> dict:
|
||||
"""
|
||||
Return config dictionary of the StreamingCamera.
|
||||
"""
|
||||
|
|
@ -119,7 +119,7 @@ class StreamingCamera(BaseCamera):
|
|||
|
||||
return conf_dict
|
||||
|
||||
def apply_config(self, config: dict) -> None:
|
||||
def apply_config(self, config: dict):
|
||||
"""
|
||||
Write a config dictionary to the StreamingCamera config.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue