minor fix

This commit is contained in:
Evgeny Zinoviev 2023-06-11 05:04:41 +03:00
parent 62ee71fdb0
commit 26bd30dff4

View File

@ -21,7 +21,6 @@ class IpcamConfig(ConfigUnit):
@classmethod @classmethod
def schema(cls) -> Optional[dict]: def schema(cls) -> Optional[dict]:
lbc = LinuxBoardsConfig()
return { return {
'cams': { 'cams': {
'type': 'dict', 'type': 'dict',
@ -32,7 +31,7 @@ class IpcamConfig(ConfigUnit):
'type': {'type': 'string', 'allowed': [t.value for t in CameraType], 'required': True}, 'type': {'type': 'string', 'allowed': [t.value for t in CameraType], 'required': True},
'codec': {'type': 'string', 'allowed': [t.value for t in VideoCodecType], 'required': True}, 'codec': {'type': 'string', 'allowed': [t.value for t in VideoCodecType], 'required': True},
'container': {'type': 'string', 'allowed': [t.value for t in VideoContainerType], 'required': True}, 'container': {'type': 'string', 'allowed': [t.value for t in VideoContainerType], 'required': True},
'server': {'type': 'string', 'allowed': list(lbc.get().keys()), 'required': True}, 'server': {'type': 'string', 'allowed': list(_lbc.get().keys()), 'required': True},
'disk': {'type': 'integer', 'required': True}, 'disk': {'type': 'integer', 'required': True},
'motion': { 'motion': {
'type': 'dict', 'type': 'dict',