|
@@ -48,7 +48,6 @@ RETAIN_SCHEMA = vol.Schema(
|
|
CLIPS_SCHEMA = vol.Schema(
|
|
CLIPS_SCHEMA = vol.Schema(
|
|
{
|
|
{
|
|
vol.Optional("max_seconds", default=300): int,
|
|
vol.Optional("max_seconds", default=300): int,
|
|
- "tmpfs_cache_size": str,
|
|
|
|
vol.Optional("retain", default={}): RETAIN_SCHEMA,
|
|
vol.Optional("retain", default={}): RETAIN_SCHEMA,
|
|
}
|
|
}
|
|
)
|
|
)
|
|
@@ -541,17 +540,12 @@ class RetainConfig:
|
|
class ClipsConfig:
|
|
class ClipsConfig:
|
|
def __init__(self, config):
|
|
def __init__(self, config):
|
|
self._max_seconds = config["max_seconds"]
|
|
self._max_seconds = config["max_seconds"]
|
|
- self._tmpfs_cache_size = config.get("tmpfs_cache_size", "").strip()
|
|
|
|
self._retain = RetainConfig(config["retain"], config["retain"])
|
|
self._retain = RetainConfig(config["retain"], config["retain"])
|
|
|
|
|
|
@property
|
|
@property
|
|
def max_seconds(self):
|
|
def max_seconds(self):
|
|
return self._max_seconds
|
|
return self._max_seconds
|
|
|
|
|
|
- @property
|
|
|
|
- def tmpfs_cache_size(self):
|
|
|
|
- return self._tmpfs_cache_size
|
|
|
|
-
|
|
|
|
@property
|
|
@property
|
|
def retain(self):
|
|
def retain(self):
|
|
return self._retain
|
|
return self._retain
|
|
@@ -559,7 +553,6 @@ class ClipsConfig:
|
|
def to_dict(self):
|
|
def to_dict(self):
|
|
return {
|
|
return {
|
|
"max_seconds": self.max_seconds,
|
|
"max_seconds": self.max_seconds,
|
|
- "tmpfs_cache_size": self.tmpfs_cache_size,
|
|
|
|
"retain": self.retain.to_dict(),
|
|
"retain": self.retain.to_dict(),
|
|
}
|
|
}
|
|
|
|
|