{% if each_device.interface == 'I2C' %} {% if 'i2c_location' in dict_options['options_enabled'] or 'i2c_location' in dict_options['options_disabled'] %} {% if 'i2c_location' in dict_options['options_disabled'] or ('i2c_location' in dict_options['options_enabled'] and not dict_options['i2c_address_editable'] and dict_options['i2c_location']|length == 1) %}