{% if 'thermocouple_type' in dict_inputs[each_input.device]['options_enabled'] %} {% if dict_inputs[each_input.device]['thermocouple_type']|length == 1 %}