'Returns true if the supplied field name exists
and the type matches for control in this device.
Arguments:
field      -- The field name
typename   -- The expected type'

def has_control_field(self, field, typename):

    if ((field in self.control_fields) and (self.control_fields[field]['type'] == typename)):
        return True
    return False
