Source code for pi_portal.modules.tasks.flags

"""Borg monostate of task scheduler's flags."""
from typing import Any, Dict


[docs]class FlagState: """Monostate of the task scheduler's flags.""" __shared_state: Dict[str, Any] = {}
[docs] def __init__(self) -> None: self.__dict__ = self.__shared_state if not self.__shared_state: self.flags = Flags()
[docs]class Flags: """Individual flag values.""" FLAG_CAMERA_DISABLED_BY_CRON: bool = False