def generate_presence_dict(self, format_dict: dict):
    presence_dict = {}
    if (format_dict['machine active'] == True):
        for field in self.config['In Machine']:
            presence_dict[field] = self.config['In Machine'][field].format(**format_dict)
        presence_dict['start'] = format_dict['start']
    else:
        for field in self.config['In Menu']:
            presence_dict[field] = self.config['In Menu'][field].format(**format_dict)
        presence_dict['start'] = None
    for field in presence_dict:
        if ((presence_dict[field] == '') or (presence_dict[field] == [])):
            presence_dict[field] = None
    return presence_dict
def generate_presence_dict(self, format_dict: dict):
    presence_dict = {}
    if (format_dict['machine active'] == True):
        for field in self.config['In Machine']:
            presence_dict[field] = self.config['In Machine'][field].format(**format_dict)
        presence_dict['start'] = format_dict['start']
    else:
        for field in self.config['In Menu']:
            presence_dict[field] = self.config['In Menu'][field].format(**format_dict)
        presence_dict['start'] = None
    for field in presence_dict:
        if ((presence_dict[field] == ) or (presence_dict[field] == [])):
            presence_dict[field] = None
    return presence_dict