ConditionalElement¶
- class flexcore.config.spec.ConditionalElement(*, kind: Literal['conditional'], unit: str, implies: str, state: Literal['on', 'off'] = 'on', name: str | None = None)¶
When a unit is on, another unit is on (or off).
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].