preheat_open.unit.ControlSettings
- class preheat_open.unit.ControlSettings(settings, parent=None)
Bases:
objectRepresents a collection of control settings.
- Variables:
settings (dict[str, ControlSetting]) – A dictionary of control settings.
parent (Unit) – The parent unit.
- __init__(settings, parent=None)
Methods
__init__(settings[, parent])from_building_model_dict(data, adapter)Creates a ControlSettings object from a building model dictionary.
get(itype[, default])Gets a control setting by type.
Converts the ControlSettings object to a dictionary.
- classmethod from_building_model_dict(data, adapter)
Creates a ControlSettings object from a building model dictionary.
- Return type:
- get(itype, default=None)
Gets a control setting by type.
- Return type:
- to_building_model_dict()
Converts the ControlSettings object to a dictionary.
- Returns:
A dictionary representation of the control settings.
- Return type:
dict